Cancel task to stop watch

This commit is contained in:
atse 2023-07-06 13:00:53 +08:00
parent c261ca2447
commit a55589415d
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ class ClientWatcher(QObject):
@pyqtSlot() @pyqtSlot()
def stop_watching(self): def stop_watching(self):
self.running = False self.running = False
self.watch_task.cancel()
@pyqtSlot() @pyqtSlot()
def set_update_s(self, update_s): def set_update_s(self, update_s):