let the client initiate the dsp again

This commit is contained in:
Jakob Ketterl
2020-09-19 21:35:14 +02:00
parent 34414de4e5
commit 71a2352d2b
2 changed files with 10 additions and 11 deletions

View File

@ -133,9 +133,6 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
self.configSub = None
self.connectionProperties = {}
# to be able to remember if the dsp has been started before
self.dspState = False
try:
ClientRegistry.getSharedInstance().addClient(self)
except TooManyClientsException:
@ -186,7 +183,6 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
if "type" in message:
if message["type"] == "dspcontrol":
if "action" in message and message["action"] == "start":
self.dspState = True
self.startDsp()
if "params" in message:
@ -278,8 +274,6 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
self.__sendProfiles()
self.sdr.addSpectrumClient(self)
if self.dspState:
self.startDsp()
def handleNoSdrsAvailable(self):
self.write_sdr_error("No SDR Devices available")