diff --git a/pysstv/examples/gimp-plugin.py b/pysstv/examples/gimp-plugin.py index 381b06c..5a8cb6e 100755 --- a/pysstv/examples/gimp-plugin.py +++ b/pysstv/examples/gimp-plugin.py @@ -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):