diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index bad92d6cc..3d7182f74 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -135,7 +135,7 @@ class ConnectionManager(component.Component): os.popen("deluged -p %s" % port) # We need to wait for the host to start before connecting while not self.test_online_status(uri): - sleep(10) + time.sleep(0.01) client.set_core_uri(uri) self.hide() @@ -432,7 +432,7 @@ class ConnectionManager(component.Component): self.start_localhost(port) # We need to wait for the host to start before connecting while not self.test_online_status(uri): - sleep(10) + time.sleep(0.01) client.set_core_uri(uri) self._update() self.hide()