bug fix from mike looijmans: notify any thread waiting in accept() when the transport dies
This commit is contained in:
parent
64b89b6efd
commit
93ab477408
|
@ -1405,6 +1405,11 @@ class Transport (threading.Thread):
|
||||||
self.auth_handler.abort()
|
self.auth_handler.abort()
|
||||||
for event in self.channel_events.values():
|
for event in self.channel_events.values():
|
||||||
event.set()
|
event.set()
|
||||||
|
try:
|
||||||
|
self.lock.acquire()
|
||||||
|
self.server_accept_cv.notify()
|
||||||
|
finally:
|
||||||
|
self.lock.release()
|
||||||
self.sock.close()
|
self.sock.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue