daemon: fixed deadlock issue when starting/stopping nftables queue
This commit is contained in:
parent
113be65078
commit
96f2408e01
1 changed files with 2 additions and 3 deletions
|
@ -117,9 +117,8 @@ class NftablesQueue:
|
|||
net = self.updates.get()
|
||||
if net is None:
|
||||
break
|
||||
with self.lock:
|
||||
self.build_cmds(net)
|
||||
self.commit(net)
|
||||
self.build_cmds(net)
|
||||
self.commit(net)
|
||||
|
||||
def commit(self, net: "CoreNetwork") -> None:
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue