mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Don't delay waiting for simple worker to quit
This commit is contained in:
parent
27407155ad
commit
453f26d10f
@ -110,7 +110,9 @@ def fork_job(mod_name, func_name, args=(), kwargs={}, timeout=300, # seconds
|
||||
communicate(ans, w, listener, (mod_name, func_name, args, kwargs),
|
||||
timeout=timeout)
|
||||
finally:
|
||||
w.kill()
|
||||
t = Thread(target=w.kill)
|
||||
t.daemon=True
|
||||
t.start()
|
||||
if no_output:
|
||||
try:
|
||||
os.remove(w.log_path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user