Skip to content

Commit

Permalink
Bug Fix: prevent process state race
Browse files Browse the repository at this point in the history
  • Loading branch information
F1bonacc1 committed Jan 13, 2024
1 parent 0268ce6 commit 363b0af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ func (p *Process) shutDownNoRestart() error {
func (p *Process) shutDown() error {
p.runCancelFn()
if !p.isRunning() {
state := p.getState()
log.Debug().Msgf("process %s is in state %s not shutting down", p.getName(), state.Status)
log.Debug().Msgf("process %s is in state %s not shutting down", p.getName(), p.getStatusName())
// prevent pending process from running
p.onProcessEnd(types.ProcessStateTerminating)
return nil
Expand Down

0 comments on commit 363b0af

Please sign in to comment.