mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Fix closed sockets not being recreated as they should
See http://stackoverflow.com/a/15958099
This commit is contained in:
@@ -64,8 +64,7 @@ class TcpTransport:
|
||||
return seq, body
|
||||
|
||||
def close(self):
|
||||
if self.tcp_client.connected:
|
||||
self.tcp_client.close()
|
||||
self.tcp_client.close()
|
||||
|
||||
def cancel_receive(self):
|
||||
"""Cancels (stops) trying to receive from the
|
||||
|
Reference in New Issue
Block a user