Another windows ipc fix

This commit is contained in:
Andrew Resch 2008-07-17 23:36:49 +00:00
parent 61358e7e31
commit 40ca2d7229

View File

@ -53,7 +53,8 @@ class IPCInterface(component.Component):
self.mutex = win32event.CreateMutex(None, False, "deluge") self.mutex = win32event.CreateMutex(None, False, "deluge")
if win32api.GetLastError() == winerror.ERROR_ALREADY_EXISTS: if win32api.GetLastError() == winerror.ERROR_ALREADY_EXISTS:
# We already have a running session, send a XMLRPC to the existing session # We already have a running session, send a XMLRPC to the existing session
uri = "http://localhost:" + str(self.config["signal_port"]) config = ConfigManager("gtkui.conf")
uri = "http://localhost:" + str(config["signal_port"])
rpc = xmlrpclib.ServerProxy(uri, allow_none=True) rpc = xmlrpclib.ServerProxy(uri, allow_none=True)
rpc.emit_signal("args_from_external", args) rpc.emit_signal("args_from_external", args)
sys.exit(0) sys.exit(0)