mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-27 17:23:16 +02:00
...
This commit is contained in:
parent
a379dd73bb
commit
ae4e486410
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ def queue_completion(self, request_id, completion_type, completion_data, query=N
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue