From e3491aaa454db77c016dd581204335898077aab1 Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Fri, 7 Sep 2018 22:03:28 +0200 Subject: [PATCH] doorlockd: Flask: disable use_reloader This spawns the process twice which duplicates the UART thread, which, of course, leads to silly races. Signed-off-by: Ralf Ramsauer --- doorlockd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doorlockd b/doorlockd index 8824f78..95424d6 100755 --- a/doorlockd +++ b/doorlockd @@ -503,6 +503,6 @@ if __name__ == '__main__': logic = Logic() - socketio.run(webapp, host=host, port=8080) + socketio.run(webapp, host=host, port=8080, use_reloader=False) sys.exit(0)