mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9c93a6e06b
commit
d1a85e7b1e
@ -83,6 +83,12 @@ class CompletionWorker(Thread):
|
|||||||
self.worker_process.kill()
|
self.worker_process.kill()
|
||||||
return self.worker_process.returncode
|
return self.worker_process.returncode
|
||||||
|
|
||||||
|
_completion_worker = None
|
||||||
|
def completion_worker():
|
||||||
|
global _completion_worker
|
||||||
|
if _completion_worker is None:
|
||||||
|
_completion_worker = CompletionWorker()
|
||||||
|
return _completion_worker
|
||||||
|
|
||||||
def run_main(func):
|
def run_main(func):
|
||||||
from multiprocessing.connection import Client
|
from multiprocessing.connection import Client
|
||||||
|
Loading…
x
Reference in New Issue
Block a user