fix: [backend:server] Exception won't stop the server

This commit is contained in:
Sami Mokaddem 2024-07-04 15:49:51 +02:00
parent a07a0de89e
commit 06f179378f

View file

@ -205,11 +205,10 @@ async def forward_zmq_to_socketio():
while True:
message = await zsocket.recv_string()
topic, s, m = message.partition(" ")
await handleMessage(topic, s, m)
try:
ZMQ_MESSAGE_COUNT += 1
ZMQ_LAST_TIME = time.time()
# await handleMessage(topic, s, m)
await handleMessage(topic, s, m)
except Exception as e:
logger.error('Error handling message %s', e)