From 7651106ea81510c81c6484eda8c70a2fa6376794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Mon, 12 Feb 2024 22:59:21 +0100 Subject: [PATCH] fixed universe count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index b37da53..e25cc0d 100644 --- a/server/app.py +++ b/server/app.py @@ -125,9 +125,9 @@ def mqtt_publisher(universe): def start_mqtt_publishers(universe_count): used_universes = universe_count - 1 - + universes_to_publish = list(range(1, used_universes + 1)) # Create and start a thread for each universe - threads = [threading.Thread(target=mqtt_publisher, args=(universe,)) for universe in used_universes] + threads = [threading.Thread(target=mqtt_publisher, args=(universe,)) for universe in universes_to_publish] for thread in threads: thread.start()