mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-25 11:46:54 +01:00
Fix: Connection.file_object is not closed on disconnection
This commit is contained in:
parent
73728957e7
commit
2813d02ae7
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user