Bug fix, syntax erro

This commit is contained in:
Rémi Oudin 2018-02-25 21:59:29 +01:00
parent f66c978466
commit 8ad46c0481

View file

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