Fix closing socket on Windows

This commit is contained in:
Lonami Exo 2017-01-30 13:36:15 +01:00
parent 78fe053ff3
commit 11629ecf2f

View File

@ -27,7 +27,6 @@ class TcpClient:
"""Closes the connection"""
self.socket.close()
self.connected = False
self.socket.setblocking(True)
def write(self, data):
"""Writes (sends) the specified bytes to the connected peer"""