aboutsummaryrefslogtreecommitdiff
path: root/backend/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/app.py')
-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>')