From 96f2408e012e83e757400b953c1d806219c9f4b2 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Thu, 17 Feb 2022 23:44:30 -0800 Subject: [PATCH] daemon: fixed deadlock issue when starting/stopping nftables queue --- daemon/core/nodes/network.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/daemon/core/nodes/network.py b/daemon/core/nodes/network.py index 6c5da089..4337daa8 100644 --- a/daemon/core/nodes/network.py +++ b/daemon/core/nodes/network.py @@ -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: """