Skip to content

Commit 81b2387

Browse files
committed
fix logic reversal
1 parent bf3b738 commit 81b2387

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zeroconf/_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def _async_update_matching_records(
404404
records = []
405405
for question in questions:
406406
for record in self.cache.async_entries_with_name(question.name):
407-
if record.is_expired(now) and question.answered_by(record):
407+
if not record.is_expired(now) and question.answered_by(record):
408408
records.append(record)
409409
if not records:
410410
return

0 commit comments

Comments
 (0)