From 53553fcce299705ef021827a666df0cbaf43e7a2 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 30 Dec 2020 21:33:02 +0100 Subject: [PATCH] fix subscription handling --- owrx/connection.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/owrx/connection.py b/owrx/connection.py index 6c6d458..c83a1c0 100644 --- a/owrx/connection.py +++ b/owrx/connection.py @@ -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):