fix old unsubscription todo

This commit is contained in:
Jakob Ketterl 2021-02-15 17:25:46 +01:00
parent 2d37f63f2c
commit a72a11d3c7

View File

@ -99,13 +99,16 @@ class OpenWebRxClient(Client, metaclass=ABCMeta):
receiver_info = receiver_details.__dict__()
self.write_receiver_details(receiver_info)
# TODO unsubscribe
receiver_details.wire(send_receiver_info)
self._detailsSubscription = receiver_details.wire(send_receiver_info)
send_receiver_info()
def write_receiver_details(self, details):
self.send({"type": "receiver_details", "value": details})
def close(self):
self._detailsSubscription.cancel()
super().close()
class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
sdr_config_keys = [