mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Fix closing socket on Windows
This commit is contained in:
parent
78fe053ff3
commit
11629ecf2f
|
@ -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"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user