mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Fix closing socket on Windows
This commit is contained in:
@@ -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"""
|
||||
|
Reference in New Issue
Block a user