Use _on_connection_changed(False)

This commit is contained in:
atse 2023-07-27 13:24:54 +08:00
parent 8f31380d52
commit 2d341df23c
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()