improve control socket handling
This commit is contained in:
parent
bf27f51049
commit
2a6c7863b1
@ -418,8 +418,10 @@ class RtlSdrSocketSource(SdrSource):
|
||||
|
||||
def wireEvents(self):
|
||||
def reconfigure(prop, value):
|
||||
if self.monitor is None:
|
||||
return
|
||||
logger.debug("sending property change over control socket: {0} changed to {1}".format(prop, value))
|
||||
self.controlSocket.send("{prop}:{value}\n".format(prop=prop, value=value).encode())
|
||||
self.controlSocket.sendall("{prop}:{value}\n".format(prop=prop, value=value).encode())
|
||||
|
||||
self.rtlProps.wire(reconfigure)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user