send failure message to client
This commit is contained in:
parent
fce8c294d3
commit
70d8fe82b3
@ -266,6 +266,9 @@ class OpenWebRxReceiverClient(Client):
|
|||||||
def write_aprs_data(self, data):
|
def write_aprs_data(self, data):
|
||||||
self.send({"type": "aprs_data", "value": data})
|
self.send({"type": "aprs_data", "value": data})
|
||||||
|
|
||||||
|
def write_sdr_error(self, message):
|
||||||
|
self.send({"type": "sdr_error", "value": message})
|
||||||
|
|
||||||
|
|
||||||
class MapConnection(Client):
|
class MapConnection(Client):
|
||||||
def __init__(self, conn):
|
def __init__(self, conn):
|
||||||
|
@ -654,6 +654,7 @@ class DspManager(csdr.output):
|
|||||||
def onSdrFailed(self):
|
def onSdrFailed(self):
|
||||||
logger.debug("received onSdrFailed, shutting down DspSource")
|
logger.debug("received onSdrFailed, shutting down DspSource")
|
||||||
self.dsp.stop()
|
self.dsp.stop()
|
||||||
|
self.handler.write_sdr_error("sdr failed")
|
||||||
|
|
||||||
|
|
||||||
class CpuUsageThread(threading.Thread):
|
class CpuUsageThread(threading.Thread):
|
||||||
|
Loading…
Reference in New Issue
Block a user