From 9063759cb25b3e353fd1ffe6dbb604560ce2e88e Mon Sep 17 00:00:00 2001 From: Bartosz Zbytniewski Date: Tue, 17 Dec 2024 09:00:03 +0100 Subject: [PATCH] Fix changing blocked state too soon --- networker/networker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networker/networker.go b/networker/networker.go index 2cf13b8a..114e3a9e 100644 --- a/networker/networker.go +++ b/networker/networker.go @@ -1662,7 +1662,7 @@ func (netw *Combined) removeRule(ruleName string) error { func (netw *Combined) ForbidFileshare() error { netw.mu.Lock() defer netw.mu.Unlock() - netw.isFilesharePermitted = false + defer func() { netw.isFilesharePermitted = false }() return netw.blockFileshareAll() }