Formatting

This commit is contained in:
shortcutme 2018-03-14 22:32:28 +01:00
parent 3d7dea52a0
commit 4083e552fd
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -89,7 +89,7 @@ class TorManager(object):
startupinfo = subprocess.STARTUPINFO() startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
self.tor_process = subprocess.Popen(r"%s -f torrc" % self.tor_exe, cwd=tor_dir, close_fds=True, startupinfo=startupinfo) self.tor_process = subprocess.Popen(r"%s -f torrc" % self.tor_exe, cwd=tor_dir, close_fds=True, startupinfo=startupinfo)
for wait in range(1,10): # Wait for startup for wait in range(1, 10): # Wait for startup
time.sleep(wait * 0.5) time.sleep(wait * 0.5)
self.enabled = True self.enabled = True
if self.connect(): if self.connect():