daemon: fixed deadlock issue when starting/stopping nftables queue

This commit is contained in:
Blake Harnden 2022-02-17 23:44:30 -08:00
parent 113be65078
commit 96f2408e01

View file

@ -117,9 +117,8 @@ class NftablesQueue:
net = self.updates.get() net = self.updates.get()
if net is None: if net is None:
break break
with self.lock: self.build_cmds(net)
self.build_cmds(net) self.commit(net)
self.commit(net)
def commit(self, net: "CoreNetwork") -> None: def commit(self, net: "CoreNetwork") -> None:
""" """