mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Fix None first_query and TcpClient.disconnect()
This commit is contained in:
@@ -84,8 +84,9 @@ class TcpClient:
|
||||
"""Closes the connection."""
|
||||
if self._socket is not None:
|
||||
try:
|
||||
self._socket.shutdown(socket.SHUT_RDWR)
|
||||
self._socket.close()
|
||||
except OSError:
|
||||
pass
|
||||
finally:
|
||||
self._socket = None
|
||||
|
||||
|
Reference in New Issue
Block a user