Module: deluge
Branch: 1.3-stable
Commit: d2e1d66f4390df1cfde771031dce4a0d0f5391bb

Author: Calum Lind <[email protected]>
Date:   Fri Jun 17 17:57:01 2011 +0100

Fix unhandled 'Connection was refused' error in gtkui

---

 deluge/ui/gtkui/gtkui.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py
index 8d96a3d..76392b9 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)

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to