Fix "STOPPED" message.

This commit is contained in:
Matthew Stratford 2021-12-23 20:26:37 +00:00
parent 7a1f7be898
commit c538ce3a46

View file

@ -217,16 +217,12 @@ class WebsocketServer:
parts = len(msg_split)
source = msg_split[0]
command = msg_split[1]
data = None
if parts == 4:
#status = msg_split[2]
data = msg_split[3]
elif parts == 3:
data = msg_split[2]
else:
self.logger.log.exception(
"Invalid message size:", msg_split
)
continue
# TODO ENUM
if source not in ["WEBSOCKET", "ALL"]: