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 cc5ef89139
commit 18bcdd09d3
1 changed files with 1 additions and 0 deletions

View File

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