mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-29 05:35:11 +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:
|
||||
pass
|
||||
finally:
|
||||
self.file_object.close()
|
||||
self.socket.close()
|
||||
self.socket = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user