Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion proxy/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ func (p *Process) start() error {

// Set process state to failed
if err != nil {
p.cmdMutex.Lock()
close(p.cmdWaitChan)
p.cmdMutex.Unlock()

if curState, swapErr := p.swapState(StateStarting, StateStopped); swapErr != nil {
p.forceState(StateStopped) // force it into a stopped state
return fmt.Errorf(
Expand Down Expand Up @@ -609,7 +613,7 @@ func (p *Process) waitForCmd() {
p.cmdMutex.Unlock()
}

// cmdStopUpstreamProcess attemps to stop the upstream process gracefully
// cmdStopUpstreamProcess attempts to stop the upstream process gracefully
func (p *Process) cmdStopUpstreamProcess() error {
p.processLogger.Debugf("<%s> cmdStopUpstreamProcess() initiating graceful stop of upstream process", p.ID)

Expand Down
Loading