fix errors on shutdown (duplicate calls)
This commit is contained in:
parent
ee3d934529
commit
3bb4f48faf
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user