From 0addef5f172a7cc1412ac146a6eec2a2caa8ad9c Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Mon, 10 Feb 2025 22:19:00 +0100 Subject: [PATCH] fix(bec_signal_proxy): unblock signal timer cleanup added --- bec_widgets/utils/bec_signal_proxy.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bec_widgets/utils/bec_signal_proxy.py b/bec_widgets/utils/bec_signal_proxy.py index 0055c70e..905aeab2 100644 --- a/bec_widgets/utils/bec_signal_proxy.py +++ b/bec_widgets/utils/bec_signal_proxy.py @@ -80,3 +80,11 @@ class BECSignalProxy(SignalProxy): """ if self.blocked: self.unblock_proxy() + + def cleanup(self): + """ + Cleanup the proxy by stopping the timer and disconnecting the timeout signal. + """ + self._timer.stop() + self._timer.timeout.disconnect(self._timeout_unblock) + self._timer.deleteLater()