added join commands
Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
+4
-2
@@ -176,8 +176,10 @@ if __name__ == "__main__":
|
|||||||
(ti_receiver,ti_sender) = Pipe(True)
|
(ti_receiver,ti_sender) = Pipe(True)
|
||||||
ti_updater_thread = Process(target=tube_index_updater, args=(ti_sender, ))
|
ti_updater_thread = Process(target=tube_index_updater, args=(ti_sender, ))
|
||||||
ti_updater_thread.start()
|
ti_updater_thread.start()
|
||||||
time.sleep(5)
|
ti_updater_thread.join()
|
||||||
publisher_thread = Process(target=mqtt_publisher, args=(ti_receiver, ))
|
publisher_thread = Process(target=mqtt_publisher, args=(ti_receiver, ))
|
||||||
publisher_thread.start()
|
publisher_thread.start()
|
||||||
|
publisher_thread.join()
|
||||||
flask_thread = Process(target=flask_api)
|
flask_thread = Process(target=flask_api)
|
||||||
flask_thread.start()
|
flask_thread.start()
|
||||||
|
flask_thread.join()
|
||||||
Reference in New Issue
Block a user