always remove device props on switch, fixes device failover

This commit is contained in:
Jakob Ketterl 2021-03-24 20:47:04 +01:00
parent b01792c3d2
commit 4cbce9c840

View File

@ -297,6 +297,7 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
return return
self.stopDsp() self.stopDsp()
self.stack.removeLayerByPriority(0)
if self.sdr is not None: if self.sdr is not None:
self.sdr.removeClient(self) self.sdr.removeClient(self)
@ -318,7 +319,6 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
self.sdr.addSpectrumClient(self) self.sdr.addSpectrumClient(self)
def handleNoSdrsAvailable(self): def handleNoSdrsAvailable(self):
self.stack.removeLayerByPriority(0)
self.write_sdr_error("No SDR Devices available") self.write_sdr_error("No SDR Devices available")
def startDsp(self): def startDsp(self):