diff --git a/owrx/fft.py b/owrx/fft.py index e97c5a8..e1a8004 100644 --- a/owrx/fft.py +++ b/owrx/fft.py @@ -84,7 +84,11 @@ class SpectrumThread(SdrSourceEventClient): self.dsp.setReader(self.sdrSource.getBuffer().getReader()) def onFail(self): + if self.dsp is None: + return self.dsp.stop() def onShutdown(self): + if self.dsp is None: + return self.dsp.stop()