Bug fix, syntax erro

This commit is contained in:
Rémi Oudin 2018-02-25 21:59:29 +01:00
parent f66c978466
commit 8ad46c0481
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class TorInstance():
self.session = None
self.process = None
def run(self):
async def run(self):
""" Runs the Tor Instance on the history.
"""
t_start = time.now()
@ -62,7 +62,7 @@ class TorInstance():
await(self.query(item[0]))
t_end = time.now()
diff = (history[0][1] - item[0]) - (t_end - t_start)
if diff > 0
if diff > 0:
sleep(diff)