feat: small performance improvement for ServiceInfo asking questions … · python-zeroconf/python-zeroconf@810a309

Original file line numberDiff line numberDiff line change

@@ -845,7 +845,7 @@ def _generate_request_query(

845845

out.add_question_or_one_cache(cache, now, name, _TYPE_TXT, _CLASS_IN)

846846

out.add_question_or_all_cache(cache, now, server_or_name, _TYPE_A, _CLASS_IN)

847847

out.add_question_or_all_cache(cache, now, server_or_name, _TYPE_AAAA, _CLASS_IN)

848-

if question_type == DNS_QUESTION_TYPE_QU:

848+

if question_type is DNS_QUESTION_TYPE_QU:

849849

for question in out.questions:

850850

question.unicast = True

851851

return out