do not close stopLisChan on SIGHUP
This commit is contained in:
parent
5fdf62ba8b
commit
526ebc4117
|
@ -108,7 +108,7 @@ mainLoop:
|
||||||
|
|
||||||
case <-reloadSig: // caught a SIGHUP
|
case <-reloadSig: // caught a SIGHUP
|
||||||
// temporary stop the socket listener and load the config again
|
// temporary stop the socket listener and load the config again
|
||||||
close(stopLisChan)
|
stopLisChan <- struct{}{}
|
||||||
loadConfig()
|
loadConfig()
|
||||||
|
|
||||||
case done := <-doneChan: // a sync is done and sends its exit status
|
case done := <-doneChan: // a sync is done and sends its exit status
|
||||||
|
|
Loading…
Reference in New Issue