Skip to content

Commit

Permalink
command: correct the normal case when shutdown
Browse files Browse the repository at this point in the history
    We could directly return when all processes are down.
    That is a normal case, we should not see the following error
    log out of the for-loop.

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
  • Loading branch information
Vicente-Cheng authored and David Ko committed Sep 17, 2023
1 parent c5287c4 commit 1254e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func cleanup(pm *process.Manager) {
}
if len(pmResp.Processes) == 0 {
logrus.Info("Shutdown all instance processes successfully")
break
return
}
time.Sleep(types.WaitInterval)
}
Expand Down

0 comments on commit 1254e4f

Please sign in to comment.