Improve re-connection speed

This commit is contained in:
Dan 2018-03-16 11:18:16 +01:00
parent 839f7b99f4
commit 4dbf1ef5ac

View File

@ -186,6 +186,9 @@ class Session:
for i in range(self.NET_WORKERS): for i in range(self.NET_WORKERS):
self.recv_queue.put(None) self.recv_queue.put(None)
for i in self.results.values():
i.event.set()
log.debug("Session stopped") log.debug("Session stopped")
def restart(self): def restart(self):