aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhruv Venkataraman2022-10-02 23:56:47 -0400
committerDhruv Venkataraman2022-10-02 23:56:47 -0400
commit3e62ca985fdce981370e0aceabb62475aeebe9de (patch)
tree6594ddd02692e5d2752c18142079212b4b83687f
parentfa12be0d76cb666c50ca5cdc37b97b3c28655a76 (diff)
hope
-rw-r--r--backend/app.py3
1 files changed, 3 insertions, 0 deletions
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/<freq>')
def freq(freq):
+ global threadFlag
+ threadFlag = False
print(freq)
thread2 = Thread(target=playFunction, args=(freq,))
+ thread2.start()
return("200")
@app.route('/stopfreq/<freq2>')