Fix error when loading torrent through IPC

Fix bug from commit 0045ec0cf1e48: missing args attribute error when
loading torrent through IPC on non-windows.
This commit is contained in:
bendikro 2013-01-01 17:37:39 +00:00 committed by Calum Lind
parent 2fde78f236
commit 3d1b47bca6
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ class IPCInterface(component.Component):
except twisted.internet.error.CannotListenError, e: except twisted.internet.error.CannotListenError, e:
log.info("Deluge is already running! Sending arguments to running instance...") log.info("Deluge is already running! Sending arguments to running instance...")
self.factory = IPCClientFactory() self.factory = IPCClientFactory()
self.factory.args = args
reactor.connectUNIX(socket, self.factory, checkPID=True) reactor.connectUNIX(socket, self.factory, checkPID=True)
reactor.run() reactor.run()
if self.factory.stop: if self.factory.stop: