Use _on_connection_changed(False)

This commit is contained in:
atse 2023-07-27 13:24:54 +08:00 committed by Tse Kwok Yan
parent 7200a8334b
commit 8c9cefd448
1 changed files with 1 additions and 2 deletions

View File

@ -464,8 +464,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
@asyncClose
async def closeEvent(self, event):
await self.stop_report_mode()
self.client_watcher.stop_watching()
await self._on_connection_changed(False)
await self.tec_client.disconnect()
@asyncSlot()