Don't remove reader if fd == -1

This commit is contained in:
Lonami Exo 2018-06-30 13:25:59 +02:00
parent dfcf414111
commit 53c660d0dc

View File

@ -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):