Skip to content

Commit

Permalink
Handle waiter already done in zeroconf service info (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Jul 27, 2024
1 parent d46c2c2 commit aea23ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohomekit/zeroconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def _async_handle_loaded_service_info(self, info: AsyncServiceInfo) -> None:

if waiters := self._waiters.pop(description.id, None):
for waiter in waiters:
if not waiter.cancelled():
if not waiter.cancelled() and not waiter.done():
waiter.set_result(discovery)

@abstractmethod
Expand Down

0 comments on commit aea23ef

Please sign in to comment.