avoid None dereference upon double AudioThread.stop()

ironpython
András Veres-Szentkirályi 2013-11-05 21:28:42 +01:00
rodzic d0f674734a
commit 213d987955
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -29,8 +29,9 @@ class AudioThread(Thread):
self.parent.audio_thread_ended()
def stop(self):
self.pas.sampler = []
self.pas = None
if self.pas is not None:
self.pas.sampler = []
self.pas = None
class Sine1750(SSTV):