bug fix from mike looijmans: notify any thread waiting in accept() when the transport dies
This commit is contained in:
Robey Pointer 2006-09-30 20:45:25 -07:00
parent 64b89b6efd
commit 93ab477408
1 changed files with 5 additions and 0 deletions

View File

@ -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()