Cancel task to stop watch

This commit is contained in:
atse 2023-07-06 13:00:53 +08:00 committed by Tse Kwok Yan
parent be2fc799df
commit 4e81510175
1 changed files with 1 additions and 0 deletions

View File

@ -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):