From e3a783c127967f46836a335d40f23260dd7316f7 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 6 Jun 2021 15:01:30 -1000 Subject: [PATCH] Move threading daemon property into ServiceBrowser class --- zeroconf/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeroconf/__init__.py b/zeroconf/__init__.py index b010c9231..6bd797d1b 100644 --- a/zeroconf/__init__.py +++ b/zeroconf/__init__.py @@ -1620,7 +1620,6 @@ def __init__( for check_type_ in self.types: if not check_type_.endswith(service_type_name(check_type_, strict=False)): raise BadTypeInNameException - self.daemon = True self.zc = zc self.addr = addr self.port = port @@ -1841,6 +1840,7 @@ def __init__( ) -> None: threading.Thread.__init__(self) super().__init__(zc, type_, handlers=handlers, listener=listener, addr=addr, port=port, delay=delay) + self.daemon = True self.start() self.name = "zeroconf-ServiceBrowser-%s-%s" % ( '-'.join([type_[:-7] for type_ in self.types]),