mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-11 19:08:40 +00:00
Another windows ipc fix
This commit is contained in:
parent
61358e7e31
commit
40ca2d7229
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue