mirror of
https://github.com/status-im/consul.git
synced 2025-02-18 00:27:04 +00:00
agent: don't replace config on SIGHUP if parsing fails
This commit is contained in:
parent
26d15e6f07
commit
5226e29a69
@ -790,7 +790,9 @@ WAIT:
|
|||||||
|
|
||||||
// Check if this is a SIGHUP
|
// Check if this is a SIGHUP
|
||||||
if sig == syscall.SIGHUP {
|
if sig == syscall.SIGHUP {
|
||||||
config = c.handleReload(config)
|
if conf := c.handleReload(config); conf != nil {
|
||||||
|
config = conf
|
||||||
|
}
|
||||||
goto WAIT
|
goto WAIT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user