From 6ece3eb10bf2f37db6ff288b817ce86786ae5591 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 Jul 2008 11:12:20 -0700 Subject: [PATCH] Fix typo in IPC socket cleanup code. --- src/calibre/parallel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/parallel.py b/src/calibre/parallel.py index f794626441..d46f61c8fd 100644 --- a/src/calibre/parallel.py +++ b/src/calibre/parallel.py @@ -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 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 -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 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): os = __import__('os') if os.path.exists(path): - os.path.unlink(path) + os.unlink(path) class Server(Thread):