fix subscription handling

This commit is contained in:
Jakob Ketterl 2020-12-30 21:33:02 +01:00
parent b85d801121
commit 53553fcce2

View File

@ -295,9 +295,8 @@ class OpenWebRxReceiverClient(OpenWebRxClient, SdrSourceEventClient):
self.stopDsp() self.stopDsp()
CpuUsageThread.getSharedInstance().remove_client(self) CpuUsageThread.getSharedInstance().remove_client(self)
ClientRegistry.getSharedInstance().removeClient(self) ClientRegistry.getSharedInstance().removeClient(self)
if self.configSub is not None: while self.configSubs:
self.configSub.cancel() self.configSubs.pop().cancel()
self.configSub = None
super().close() super().close()
def stopDsp(self): def stopDsp(self):