mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 19:03:46 +03:00
Don't remove reader if fd == -1
This commit is contained in:
parent
dfcf414111
commit
53c660d0dc
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user