Skip to content

Commit 3fc46d2

Browse files
committed
BUG/MINOR: reload_agent: check if delay is 0
1 parent 15bd90e commit 3fc46d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

haproxy/reload_agent.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ func (ra *ReloadAgent) Init(delay int, reloadCmd string, restartCmd string, conf
5656
ra.reloadCmd = reloadCmd
5757
ra.restartCmd = restartCmd
5858
ra.configFile = configFile
59+
if delay == 0 {
60+
delay = 5
61+
}
5962
ra.delay = delay
6063
ra.lkgConfigFile = configFile + ".lkg"
6164

0 commit comments

Comments
 (0)