fixed run forefer

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 17:33:39 +01:00
parent 04a5dbc19d
commit ac14cce7b5
1 changed files with 3 additions and 2 deletions

View File

@ -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()