From 1254e4ff61eb0b1fdb7424fc3410f2db38e1962a Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Thu, 27 Jul 2023 11:43:41 +0800 Subject: [PATCH] command: correct the normal case when shutdown 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 --- app/cmd/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cmd/start.go b/app/cmd/start.go index 9e15810f6..b95317c3f 100644 --- a/app/cmd/start.go +++ b/app/cmd/start.go @@ -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) }