From 3e62ca985fdce981370e0aceabb62475aeebe9de Mon Sep 17 00:00:00 2001 From: Dhruv Venkataraman Date: Sun, 2 Oct 2022 23:56:47 -0400 Subject: hope --- backend/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/app.py b/backend/app.py index 1dd409c..5b016a3 100644 --- a/backend/app.py +++ b/backend/app.py @@ -20,8 +20,11 @@ def activate_job(): @app.route('/startfreq/') def freq(freq): + global threadFlag + threadFlag = False print(freq) thread2 = Thread(target=playFunction, args=(freq,)) + thread2.start() return("200") @app.route('/stopfreq/') -- cgit v1.2.3-70-g09d2