forked from M-Labs/thermostat
Cancel task to stop watch
This commit is contained in:
parent
c261ca2447
commit
a55589415d
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue