Fix: Connection.file_object is not closed on disconnection

This commit is contained in:
joo 2020-12-07 23:59:10 +01:00
parent 73728957e7
commit 2813d02ae7

View File

@ -468,6 +468,7 @@ class Connection(object):
except socket.error: except socket.error:
pass pass
finally: finally:
self.file_object.close()
self.socket.close() self.socket.close()
self.socket = None self.socket = None