Disconnect client too on close

This commit is contained in:
atse 2023-07-06 12:42:22 +08:00
parent c476ad9f7d
commit c261ca2447
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
async def closeEvent(self, event):
if self.client_watcher is not None:
self.client_watcher.stop_watching()
if self.tec_client is not None:
await self.tec_client.disconnect()
@asyncSlot()
async def connect(self):