This commit is contained in:
John Schember 2011-02-28 20:06:56 -05:00
parent a30f916813
commit d459367526

View File

@ -159,9 +159,9 @@ class GenericDownloadThreadPool(object):
def abort(self):
self.tasks = Queue()
self.results = Queue()
self.threads = []
for t in self.threads:
t.abort()
self.threads = []
def has_tasks(self):
return not self.tasks.empty()