mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Fix undefined sleep.
This commit is contained in:
parent
df9fd2af09
commit
a3658e352b
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue