]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/mapping.py
Make 'wait' action interruptible
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / mapping.py
index 95c9d670a26488684d9d803b8b8b3c66d736eba7..ea9d0757b0244eef6f9ef2f6d949b02790424d37 100644 (file)
@@ -65,7 +65,10 @@ class Mapping(RelativeLayout):
         return False
 
     def stop_all_running(self):
+        running = self.running
         self.running = []
+        for (key, start_time) in running:
+            key.interrupt_action()
 
     def start_running(self, key, start_time):
         self.running.append((key, start_time))