forked from M-Labs/thermostat
Use _on_connection_changed(False)
This commit is contained in:
parent
8f31380d52
commit
2d341df23c
|
@ -464,8 +464,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
|
|
||||||
@asyncClose
|
@asyncClose
|
||||||
async def closeEvent(self, event):
|
async def closeEvent(self, event):
|
||||||
await self.stop_report_mode()
|
await self._on_connection_changed(False)
|
||||||
self.client_watcher.stop_watching()
|
|
||||||
await self.tec_client.disconnect()
|
await self.tec_client.disconnect()
|
||||||
|
|
||||||
@asyncSlot()
|
@asyncSlot()
|
||||||
|
|
Loading…
Reference in New Issue