mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Don't remove reader if fd == -1
This commit is contained in:
@@ -119,7 +119,7 @@ class TcpClient:
|
|||||||
finally:
|
finally:
|
||||||
self._socket = None
|
self._socket = None
|
||||||
self._closed.set()
|
self._closed.set()
|
||||||
if fd:
|
if fd and fd != -1:
|
||||||
self._loop.remove_reader(fd)
|
self._loop.remove_reader(fd)
|
||||||
|
|
||||||
async def _wait_timeout_or_close(self, coro):
|
async def _wait_timeout_or_close(self, coro):
|
||||||
|
Reference in New Issue
Block a user