1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-05-05 14:24:21 +02:00

fix(server): emit heartbeat with state

This commit is contained in:
2024-08-14 16:05:04 +02:00
parent 49a5a23d41
commit bc2abe945f
2 changed files with 17 additions and 10 deletions
+5 -1
View File
@@ -331,4 +331,8 @@ class RPCBase:
Check if the GUI is alive.
"""
heart = self._client.connector.get(MessageEndpoints.gui_heartbeat(self._root._gui_id))
return heart is not None
if heart is None:
return False
if heart.status == messages.BECStatus.RUNNING:
return True
return False