From a3658e352b0203e858ea8ba05c4b33a3b7d18d76 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 2 Jan 2008 11:46:08 +0000 Subject: [PATCH] Fix undefined sleep. --- deluge/ui/gtkui/connectionmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()