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