From a55589415d17defaf661e0af6969a09bf5f98fe6 Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 6 Jul 2023 13:00:53 +0800 Subject: [PATCH] Cancel task to stop watch --- pytec/tec_qt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 7c34377..c2e54d0 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -57,6 +57,7 @@ class ClientWatcher(QObject): @pyqtSlot() def stop_watching(self): self.running = False + self.watch_task.cancel() @pyqtSlot() def set_update_s(self, update_s):