From 19196b1363b9e670090707293fee194d207f1ca0 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 10 Dec 2008 22:15:09 +0000 Subject: [PATCH] Fix classic mode --- deluge/ui/gtkui/connectionmanager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index a6be7c297..2fb24da37 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -156,9 +156,10 @@ class ConnectionManager(component.Component): if self.gtkui_config["classic_mode"]: self.start_localhost(DEFAULT_PORT) # We need to wait for the host to start before connecting - while not self.test_online_status(DEFAULT_URI): + uri = self.get_localhost_auth_uri(DEFAULT_URI) + while not self.test_online_status(uri): time.sleep(0.01) - client.set_core_uri(DEFAULT_URI) + client.set_core_uri(uri) self.hide() return