Skip to content

Commit

Permalink
fix: ensure unavailable callbacks can be removed from fired callbacks (
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Jan 22, 2024
1 parent 03b7d20 commit 65e7706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/habluetooth/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def _async_check_unavailable(self) -> None:
if not (callbacks := unavailable_callbacks.get(address)):
continue

for callback in callbacks:
for callback in callbacks.copy():
try:
callback(service_info)
except Exception: # pylint: disable=broad-except
Expand Down

0 comments on commit 65e7706

Please sign in to comment.