Skip to content

Commit

Permalink
Restart plugin when NcpFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Jan 26, 2025
1 parent 8bb22e6 commit 1158355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ZigpyTransport/AppGeneric.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ async def _create_backup(self) -> None:
def connection_lost(self, exc: Exception) -> None:
"""Handle connection lost event."""

if exc is None or self.restarting:
if exc is None or self.restarting or self.shutting_down:
# exc is None: Connection closed cleanly. do nothing
# self.restarting: Restart in progress
return
Expand Down

0 comments on commit 1158355

Please sign in to comment.