mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
4bf877c5f5
commit
36b1a697c2
@ -129,7 +129,7 @@ class ParseWorker(Thread):
|
||||
self.parse_items.clear()
|
||||
|
||||
def is_alive(self):
|
||||
return Thread.is_alive(self) or self.worker.is_alive()
|
||||
return Thread.is_alive(self) or (hasattr(self, 'worker') and self.worker.is_alive())
|
||||
|
||||
parse_worker = ParseWorker()
|
||||
# }}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user