mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-25 22:46:37 +00:00
Fix closing socket on Windows
This commit is contained in:
parent
78fe053ff3
commit
11629ecf2f
@ -27,7 +27,6 @@ class TcpClient:
|
|||||||
"""Closes the connection"""
|
"""Closes the connection"""
|
||||||
self.socket.close()
|
self.socket.close()
|
||||||
self.connected = False
|
self.connected = False
|
||||||
self.socket.setblocking(True)
|
|
||||||
|
|
||||||
def write(self, data):
|
def write(self, data):
|
||||||
"""Writes (sends) the specified bytes to the connected peer"""
|
"""Writes (sends) the specified bytes to the connected peer"""
|
||||||
|
Loading…
Reference in New Issue
Block a user