Skip to content

Error 'NoneType' object has no attribute '_wants_to_disconnect' #2

@cjrd

Description

@cjrd

I encountered an error while using the socketIO_client in a multi-threaded application. I was quickly and successively killing a test socketIO server when I encountered:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 808, in __bootstrap_inner
    self.run()
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 761, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Users/cjrd/GDrive/sumocode/sumo.device-skeeball/sumo/suminfo/logger.py", line 112, in StartEmitter
    socketio.wait();
  File "/usr/local/lib/python2.7/site-packages/socketIO_client/__init__.py", line 287, in wait
    if self._stop_waiting(for_callbacks):
  File "/usr/local/lib/python2.7/site-packages/socketIO_client/__init__.py", line 359, in _stop_waiting
    if self.__transport._wants_to_disconnect:
AttributeError: 'NoneType' object has no attribute '_wants_to_disconnect'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions