mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-01-06 20:20:30 -05:00
...
This commit is contained in:
parent
a30f916813
commit
d459367526
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user