use walrus

This commit is contained in:
2023-08-04 16:21:07 +01:00
parent 50e95d6b8d
commit cddd04974b
2 changed files with 5 additions and 8 deletions

View File

@@ -331,8 +331,9 @@ class Remote(CBindings):
self.logger.info(f"Profile '{name}' applied!")
def end_thread(self):
self.logger.debug("events thread shutdown started")
self.running = False
if self.running:
self.logger.debug("events thread shutdown started")
self.running = False
def logout(self) -> None:
"""Logout of the API"""