From 12fd93ce6b26a5edc92f2da5e735495091ffb7fb Mon Sep 17 00:00:00 2001 From: jakob Date: Tue, 20 Aug 2019 17:06:39 +0200 Subject: [PATCH] Join background thread first on stop() --- campatmo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/campatmo.py b/campatmo.py index a355165..66ee46f 100755 --- a/campatmo.py +++ b/campatmo.py @@ -100,8 +100,8 @@ class CampAtmo: def stop(self): self.stopped = True + self.background_thread.join(1.2) self.lines_thread.join(2) - self.background_thread.join(0.5) def load_sounds(self): type_names = glob("samples/*/")