mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
cmd/cli: do not run pre run on reload
This commit is contained in:
committed by
Cuong Manh Le
parent
91d319804b
commit
cd9c750884
@@ -212,7 +212,9 @@ func setupUpstream(cfg *ctrld.Config) {
|
||||
func (p *prog) run(reload bool, reloadCh chan struct{}) {
|
||||
// Wait the caller to signal that we can do our logic.
|
||||
<-p.waitCh
|
||||
p.preRun()
|
||||
if !reload {
|
||||
p.preRun()
|
||||
}
|
||||
numListeners := len(p.cfg.Listener)
|
||||
if !reload {
|
||||
p.started = make(chan struct{}, numListeners)
|
||||
|
||||
Reference in New Issue
Block a user