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()
CpuUsageThread.getSharedInstance().remove_client(self)
ClientRegistry.getSharedInstance().removeClient(self)
if self.configSub is not None:
self.configSub.cancel()
self.configSub = None
while self.configSubs:
self.configSubs.pop().cancel()
super().close()
def stopDsp(self):