Skip to content

Commit

Permalink
fix: on shutdown clear out client
Browse files Browse the repository at this point in the history
  • Loading branch information
cdnninja committed Sep 6, 2024
1 parent 428ff8c commit f56352e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yoto_api/YotoManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def disconnect(self) -> None:
# Should be used when shutting down
if self.mqtt_client:
self.mqtt_client.disconnect_mqtt()
self.mqtt_client = None

def update_library(self) -> None:
# Updates library and all card data. Typically only required on startup.
Expand Down

0 comments on commit f56352e

Please sign in to comment.