mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 12:53:44 +03:00
Fix ._get_connected failing when .fileno() == 0 ( #427)
This commit is contained in:
parent
d59b17c6fc
commit
48e96ca15f
|
@ -59,7 +59,7 @@ class TcpClient:
|
|||
raise
|
||||
|
||||
def _get_connected(self):
|
||||
return self._socket is not None and self._socket.fileno() > 0
|
||||
return self._socket is not None and self._socket.fileno() >= 0
|
||||
|
||||
connected = property(fget=_get_connected)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user