cinely/mule-uploader — pull request #15 by kookster (2013-08-09 05:15:23+00:00)
Title: clear interval when different thread completes upload

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.