Merge pull request #37 from leth/patch-3

Catch AttributeError in client connected check
This commit is contained in:
Roy Hyunjin Han 2015-01-09 22:15:36 +09:00
commit c1e4924717

View file

@ -243,7 +243,12 @@ class SocketIO(object):
@property
def connected(self):
return self.__transport.connected
try:
transport = self.__transport
except AttributeError:
return False
else:
return transport.connected
@property
def _transport(self):