From d2e1d66f4390df1cfde771031dce4a0d0f5391bb Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 17 Jun 2011 17:57:01 +0100 Subject: [PATCH] Fix unhandled 'Connection was refused' error in gtkui --- deluge/ui/gtkui/gtkui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py index 8d96a3dae..76392b986 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -343,7 +343,7 @@ Please see the details below for more information."), details=traceback.format_e def on_connect(connector): component.start() def on_connect_fail(result, try_counter): - log.error("Connection to host failed..") + log.info("Connection to host failed..") # We failed connecting to the daemon, but lets try again if try_counter: log.info("Retrying connection.. Retries left: %s", try_counter) @@ -351,7 +351,7 @@ Please see the details below for more information."), details=traceback.format_e import time time.sleep(0.5) do_connect(try_counter) - return result + return def do_connect(try_counter): client.connect(*host[1:]).addCallback(on_connect).addErrback(on_connect_fail, try_counter)