Skip to content

Commit 275765a

Browse files
authored
Move threading daemon property into ServiceBrowser class (#486)
1 parent 49db96d commit 275765a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zeroconf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,6 @@ def __init__(
16201620
for check_type_ in self.types:
16211621
if not check_type_.endswith(service_type_name(check_type_, strict=False)):
16221622
raise BadTypeInNameException
1623-
self.daemon = True
16241623
self.zc = zc
16251624
self.addr = addr
16261625
self.port = port
@@ -1841,6 +1840,7 @@ def __init__(
18411840
) -> None:
18421841
threading.Thread.__init__(self)
18431842
super().__init__(zc, type_, handlers=handlers, listener=listener, addr=addr, port=port, delay=delay)
1843+
self.daemon = True
18441844
self.start()
18451845
self.name = "zeroconf-ServiceBrowser-%s-%s" % (
18461846
'-'.join([type_[:-7] for type_ in self.types]),

0 commit comments

Comments
 (0)