fix old unsubscription todo
This commit is contained in:
parent
2d37f63f2c
commit
a72a11d3c7
@ -99,13 +99,16 @@ class OpenWebRxClient(Client, metaclass=ABCMeta):
|
|||||||
receiver_info = receiver_details.__dict__()
|
receiver_info = receiver_details.__dict__()
|
||||||
self.write_receiver_details(receiver_info)
|
self.write_receiver_details(receiver_info)
|
||||||
|
|
||||||
# TODO unsubscribe
|
self._detailsSubscription = receiver_details.wire(send_receiver_info)
|
||||||
receiver_details.wire(send_receiver_info)
|
|
||||||
send_receiver_info()
|
send_receiver_info()
|
||||||
|
|
||||||
def write_receiver_details(self, details):
|
def write_receiver_details(self, details):
|
||||||
self.send({"type": "receiver_details", "value": details})
|
self.send({"type": "receiver_details", "value": details})
|
||||||
|
|
||||||
|
def close(self):
|
||||||
|
self._detailsSubscription.cancel()
|
||||||
|
super().close()
|
||||||
|
|
||||||
|
|
||||||
class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
|
class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
|
||||||
sdr_config_keys = [
|
sdr_config_keys = [
|
||||||
|
Loading…
Reference in New Issue
Block a user