mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 22:15:11 +00:00
Move FSM instantiation out of FSMManagingSocketHandler
This commit is contained in:
@ -41,12 +41,8 @@ class ZMQWebSocketHandler(WebSocketHandler):
|
||||
|
||||
|
||||
class FSMManagingSocketHandler(ZMQWebSocketHandler):
|
||||
fsm = None
|
||||
|
||||
def __init__(self, FSM, application, request, **kwargs):
|
||||
super().__init__(application, request, **kwargs)
|
||||
if self.fsm is None:
|
||||
FSMManagingSocketHandler.fsm = FSM()
|
||||
def initialize(self, fsm):
|
||||
self.fsm = fsm
|
||||
self.fsm.subscribe_message_handler(self.handle_fsm_message)
|
||||
|
||||
def on_close(self):
|
||||
|
Reference in New Issue
Block a user