Skip to content

Commit c6caea3

Browse files
committed
chore(common): restore goto, rm outerLoop
1 parent 7b3a0dc commit c6caea3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

daemon/firewall/common/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,18 @@ func (c *Common) NewRulesChecker(areRulesLoaded callbackBool, reloadRules callba
113113
// StartCheckingRules monitors if our rules are loaded.
114114
// If the rules to intercept traffic are not loaded, we'll try to insert them again.
115115
func (c *Common) startCheckingRules(areRulesLoaded callbackBool, reloadRules callback) {
116-
outerLoop:
117116
for {
118117
select {
119118
case <-c.stopCheckerChan.exit():
120-
break outerLoop
119+
goto Exit
121120
case <-c.RulesChecker.C:
122121
if areRulesLoaded() == false {
123122
reloadRules()
124123
}
125124
}
126125
}
127126

127+
Exit:
128128
log.Info("exit checking firewall rules")
129129
}
130130

0 commit comments

Comments
 (0)