cinely / mule-uploader

Stubborn HTML5 Amazon S3 uploader
http://mule-uploader.com/
MIT License
223 stars 43 forks source link

clear interval when different thread completes upload #15

Closed kookster closed 11 years ago

kookster commented 11 years ago

I noticed that this interval was not being cleared when a different thread completed it's chunk, and the upload, but this interval us unaware the upload is done, keeps trying to get a chunk to upload.

Now it mirrors the code above that runs immediately, but this interval happens each second after that, and clears the intervals either when there is a chunk to process, or the upload is done.