simplify thread daemon usage
This commit is contained in:
parent
21dfaf7d66
commit
e1c9155ba7
4 changed files with 8 additions and 7 deletions
|
@ -70,8 +70,7 @@ class EbtablesQueue:
|
|||
return
|
||||
|
||||
self.doupdateloop = True
|
||||
self.updatethread = threading.Thread(target=self.updateloop)
|
||||
self.updatethread.daemon = True
|
||||
self.updatethread = threading.Thread(target=self.updateloop, daemon=True)
|
||||
self.updatethread.start()
|
||||
|
||||
def stopupdateloop(self, wlan: "CoreNetwork") -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue