mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Remove log file when shutting down offload worker
This commit is contained in:
parent
144fa523ef
commit
d50c85b885
@ -74,7 +74,11 @@ class OffloadWorker(object):
|
||||
finally:
|
||||
self.conn = None
|
||||
t = Thread(target=self.worker.kill)
|
||||
t.daemon=True
|
||||
t.daemon = True
|
||||
try:
|
||||
os.remove(self.worker.log_path)
|
||||
except:
|
||||
pass
|
||||
t.start()
|
||||
|
||||
def communicate(ans, worker, listener, args, timeout=300, heartbeat=None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user