forked from M-Labs/thermostat
Disconnect client too on close
This commit is contained in:
parent
c476ad9f7d
commit
c261ca2447
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue