Skip to content
Snippets Groups Projects
Commit 9cbec8ac authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix a TB

parent 32bb3c50
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,8 @@ def receive(self):
if len(received): # length of 0 means disconnect
self.DEBUG(received,'got')
self._owner.Dispatcher.Event('', DATA_RECEIVED, received)
if hasattr(self._owner, 'Dispatcher'):
self._owner.Dispatcher.Event('', DATA_RECEIVED, received)
else:
self.DEBUG('Socket error while receiving data','error')
self._owner.disconnected()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment