Parcourir la source

Merge branch 'dev' into feature/firmware-updater

Tuan Nguyen il y a 1 an
Parent
commit
ae76700322
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      app.py

+ 6 - 1
app.py

@@ -593,7 +593,12 @@ def run_theta_rho():
 
 
 @app.route('/stop_execution', methods=['POST'])
 @app.route('/stop_execution', methods=['POST'])
 def stop_execution():
 def stop_execution():
-    global stop_requested
+    global pause_requested
+    with pause_condition:
+        pause_requested = False
+        pause_condition.notify_all()
+        
+    global stop_requested, current_playing_index, current_playlist, is_clearing, current_playing_file, execution_progress
     stop_requested = True
     stop_requested = True
     current_playing_index = None
     current_playing_index = None
     current_playlist = None
     current_playlist = None