diff --git a/server/app.py b/server/app.py index b341c73..88167a7 100644 --- a/server/app.py +++ b/server/app.py @@ -130,9 +130,7 @@ def start_mqtt_publishers(): # Publish the DMX value to the MQTT topic mqtt_client.publish(topic, str(dmxPacket[i-1])) except KeyboardInterrupt: - break - - time.sleep(0.001) + break except Exception as e: print(e) except KeyboardInterrupt: