Skip to content

Commit

Permalink
Fix changing blocked state too soon
Browse files Browse the repository at this point in the history
  • Loading branch information
devzbysiu committed Dec 17, 2024
1 parent df68940 commit 9063759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networker/networker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 9063759

Please sign in to comment.