From 7d1392ffe5ffdb1857877a880813d481d0b47577 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 26 Feb 2009 01:50:30 +0000 Subject: [PATCH] Clean up some debug statements. Fix adding torrents from arguments on initial load. --- deluge/ui/gtkui/ipcinterface.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deluge/ui/gtkui/ipcinterface.py b/deluge/ui/gtkui/ipcinterface.py index 3df013975..d0a25fece 100644 --- a/deluge/ui/gtkui/ipcinterface.py +++ b/deluge/ui/gtkui/ipcinterface.py @@ -41,12 +41,10 @@ import twisted.internet.error class IPCProtocolServer(Protocol): def dataReceived(self, data): data = deluge.rencode.loads(data) - log.debug("Data received: %s", data) process_args(data) class IPCProtocolClient(Protocol): def connectionMade(self): - log.debug("Connection made!") self.transport.write(deluge.rencode.dumps(self.factory.args)) self.transport.loseConnection() def connectionLost(self, reason): @@ -55,7 +53,6 @@ class IPCProtocolClient(Protocol): class IPCInterface(component.Component): def __init__(self, args): component.Component.__init__(self, "IPCInterface") - log.debug("args: %s", args) if not os.path.exists(deluge.configmanager.get_config_dir("ipc")): os.makedirs(deluge.configmanager.get_config_dir("ipc")) @@ -73,6 +70,8 @@ class IPCInterface(component.Component): reactor.connectUNIX(socket, self.factory, checkPID=True) reactor.run() sys.exit(0) + else: + process_args(args) def process_args(args): """Process arguments sent to already running Deluge"""