mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix typo in IPC socket cleanup code.
This commit is contained in:
parent
5a5e63499e
commit
6ece3eb10b
@ -18,7 +18,7 @@ Once a job is handed off to the worker, the protocol enters the second mode, whe
|
|||||||
the controller listens for messages from the worker. The worker can send progress updates
|
the controller listens for messages from the worker. The worker can send progress updates
|
||||||
as well as console output (i.e. text that would normally have been written to stdout
|
as well as console output (i.e. text that would normally have been written to stdout
|
||||||
or stderr by the job). Once the job completes (or raises an exception) the worker
|
or stderr by the job). Once the job completes (or raises an exception) the worker
|
||||||
returns the result (or exception) to the controller adnt he protocol reverts to the first mode.
|
returns the result (or exception) to the controller and the protocol reverts to the first mode.
|
||||||
|
|
||||||
In the second mode, the controller can also send the worker STOP messages, in which case
|
In the second mode, the controller can also send the worker STOP messages, in which case
|
||||||
the worker interrupts the job and dies. The sending of progress and console output messages
|
the worker interrupts the job and dies. The sending of progress and console output messages
|
||||||
@ -497,7 +497,7 @@ class Result(object):
|
|||||||
def remove_ipc_socket(path):
|
def remove_ipc_socket(path):
|
||||||
os = __import__('os')
|
os = __import__('os')
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
os.path.unlink(path)
|
os.unlink(path)
|
||||||
|
|
||||||
class Server(Thread):
|
class Server(Thread):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user