Skip to content

Commit

Permalink
avm: improve plugin shutdown: terminate update loop if plugin is no l…
Browse files Browse the repository at this point in the history
…onger alive
  • Loading branch information
aschwith committed Oct 16, 2023
1 parent 745e49a commit 8a2a79f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions avm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,9 @@ def cyclic_item_update(self, read_all: bool = False):
item_count = 0
for item in self.item_list():

if not self._plugin_instance.alive:
return

if not self.connected:
self.logger.warning("FritzDevice not connected. No update of item values possible.")
return
Expand Down

0 comments on commit 8a2a79f

Please sign in to comment.