mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-29 18:22:37 -04:00
...
This commit is contained in:
@@ -139,7 +139,7 @@ class CompletionWorker(Thread):
|
||||
def shutdown(self):
|
||||
self.shutting_down = True
|
||||
self.main_queue.put(None)
|
||||
for conn in (self.control_conn, self.data_conn):
|
||||
for conn in (getattr(self, 'control_conn', None), getattr(self, 'data_conn', None)):
|
||||
try:
|
||||
conn.close()
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user