Compare commits

..

2 Commits

Author SHA1 Message Date
Jakob 12fd93ce6b Join background thread first on stop() 2019-08-20 17:06:39 +02:00
Jakob eea986304e Fix CampAtmo.stop(self) signature 2019-08-20 17:05:14 +02:00
1 changed files with 2 additions and 2 deletions

View File

@ -98,10 +98,10 @@ class CampAtmo:
)
self.lines_thread.start()
def stop():
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/*/")