mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 14:51:22 +00:00
Fix ZMQWebSocketHandler's sockets being bound several times
This commit is contained in:
parent
87a437cfb5
commit
f8ca656ff0
@ -7,9 +7,10 @@ from event_handler_connector import EventHandlerConnector
|
||||
|
||||
|
||||
class ZMQWebSocketHandler(WebSocketHandler):
|
||||
def __init__(self, application, request, **kwargs):
|
||||
_event_handler_connector = EventHandlerConnector() #<--------------------. TODO: how is __init__()
|
||||
# fix: made it static | TODO: called more than once?
|
||||
def __init__(self, application, request, **kwargs): #---------------------'
|
||||
super().__init__(application, request, **kwargs)
|
||||
self._event_handler_connector = EventHandlerConnector()
|
||||
|
||||
def open(self, *args, **kwargs):
|
||||
logging.debug('WebSocket connection initiated')
|
||||
|
Loading…
Reference in New Issue
Block a user