Make the Onion object poll the tor controller less frequently, now that the connection happens in a separate thread

This commit is contained in:
Micah Lee 2017-05-16 11:47:18 -07:00
parent 388202e1ea
commit 852a6761ee
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -229,7 +229,7 @@ class Onion(object):
if summary == 'Done': if summary == 'Done':
print("") print("")
break break
time.sleep(0.05) time.sleep(0.2)
# Timeout after 45 seconds # Timeout after 45 seconds
if time.time() - start_ts > 45: if time.time() - start_ts > 45: