Fix undefined sleep.

This commit is contained in:
Andrew Resch 2008-01-02 11:46:08 +00:00
parent df9fd2af09
commit a3658e352b
1 changed files with 2 additions and 2 deletions

View File

@ -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()