From 68a27dc94fa0cab702d2eb5881aa48b88173c9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 18 Feb 2024 01:29:47 +0100 Subject: [PATCH] removed flag for mp 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, 1 insertion(+), 3 deletions(-) diff --git a/server/app.py b/server/app.py index 1ca5b9e..b5e886d 100644 --- a/server/app.py +++ b/server/app.py @@ -8,7 +8,6 @@ from getmac import get_mac_address import time import sys from multiprocessing import Process, Value -import multiprocessing app = Flask(__name__) @@ -155,8 +154,7 @@ def tube_index_updater(shared_mem): time.sleep(5) if __name__ == "__main__": - multiprocessing.set_start_method("fork") - tube_index_smem = Value("tube_index", "placeholder") + tube_index_smem = Value("tube_index", 0.0) ti_updater_thread = Process(target=tube_index_updater, args=(tube_index_smem)) ti_updater_thread.start() time.sleep(1)