diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index ed3d189..7334265 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -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()