Fix race condition in FrontendConfigHandler (frontend.ready)

This commit is contained in:
Kristóf Tóth 2019-10-31 15:23:55 +01:00
parent ac198e5731
commit ba4803d660

View File

@ -12,7 +12,7 @@ class FrontendConfigHandler:
def handle_event(self, _, connector):
# pylint: disable=no-self-use
for message in self._config_messages:
connector.send_message(message)
connector.send_message(message, scope=Scope.WEBSOCKET)
connector.send_message({'key': 'frontend.ready'}, scope=Scope.WEBSOCKET)
@property