mirror of
https://github.com/dnet/pySSTV.git
synced 2026-01-06 00:30:19 +01:00
avoid None dereference upon double AudioThread.stop()
This commit is contained in:
parent
d0f674734a
commit
213d987955
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue