Skip to content

Commit 0ff4eca

Browse files
committed
BugFix #253 The connected websocket is unreachable and keep the thread locked. Moved the message to the websocket outside the thread locked scope.
1 parent d37ca82 commit 0ff4eca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

remi/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def do_gui_update(self):
448448
def websocket_handshake_done(self, ws_instance_to_update):
449449
with self.update_lock:
450450
msg = "0" + self.root.identifier + ',' + to_websocket(self.page.children['body'].innerHTML({}))
451-
ws_instance_to_update.send_message(msg)
451+
ws_instance_to_update.send_message(msg)
452452

453453
def set_root_widget(self, widget):
454454
self.page.children['body'].append(widget, 'root')

0 commit comments

Comments
 (0)