fent/node-torrent — pull request #6 by iantocristian (2012-12-18 20:06:36+00:00)
Title: queue.process fix

in some cases it's possible for the queue process method to get called more times than necessary, which results in a null exception. while ensuring that the process method only gets called as many times as needed is a more complicated matter, a simple check for tasks length should take care of the problem and extra calls to process method should do no harm.
the problem is more apparent on windows but it can also be replicated on osx and ubuntu.