Fix ._get_connected failing when .fileno() == 0 ( #427)

This commit is contained in:
Lonami 2017-11-14 12:01:33 +01:00 committed by GitHub
parent d59b17c6fc
commit 48e96ca15f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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