fixed nasty bug where tor circuits was causing gevent to leak threads

This commit is contained in:
Kevin Froman 2020-03-20 03:50:48 -05:00
parent 022fbaa1af
commit e6181bdd1f
12 changed files with 47 additions and 39 deletions

View file

@ -50,6 +50,7 @@ def event(event_name, data = {}, threaded = True):
'''
if threaded:
print('threaded event', event_name)
thread = Thread(target = __event_caller, args = (event_name, data))
thread.start()
return thread