mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 12:53:44 +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:
|
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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user