From ac14cce7b5c2caa7f0a2200d10146a7a7afee912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 17:33:39 +0100 Subject: [PATCH] fixed run forefer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index ac3d8d8..3c4a5a3 100644 --- a/server/app.py +++ b/server/app.py @@ -129,8 +129,9 @@ if __name__ == "__main__": flask_thread = Process(target=flask_api) flask_thread.start() - index_updater = asyncio.get_event_loop() - index_updater.run_forever(tube_index_updater()) + index_updater = asyncio.get_event_loop() + asyncio.ensure_future(tube_index_updater()) + index_updater.run_forever() # Create and start a thread for each universe mqtt_client = connect_mqtt()