fixing close method that is called as part of __del__. No longer throws error trying to call an attribute that will not exist if object fails during instantiation
This commit is contained in:
parent
12fa6c523b
commit
689648ba32
1 changed files with 4 additions and 1 deletions
|
|
@ -173,7 +173,10 @@ class EngineIO(LoggingMixin):
|
|||
|
||||
def _close(self):
|
||||
self._wants_to_close = True
|
||||
self._heartbeat_thread.halt()
|
||||
try:
|
||||
self._heartbeat_thread.halt()
|
||||
except AttributeError:
|
||||
pass
|
||||
if not self._opened:
|
||||
return
|
||||
engineIO_packet_type = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue