From 7d066874214db6a75bacd4e2a17138c707d67203 Mon Sep 17 00:00:00 2001 From: utam0k Date: Wed, 12 Oct 2022 06:14:40 +0000 Subject: [PATCH] supervisor: Ignore the terminated signal --- components/supervisor/pkg/supervisor/supervisor.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/supervisor/pkg/supervisor/supervisor.go b/components/supervisor/pkg/supervisor/supervisor.go index 1d0b050584063a..41ffc7fb623b3a 100644 --- a/components/supervisor/pkg/supervisor/supervisor.go +++ b/components/supervisor/pkg/supervisor/supervisor.go @@ -821,10 +821,8 @@ func launchIDE(cfg *Config, ideConfig *IDEConfig, cmd *exec.Cmd, ideStopped chan }() err = cmd.Wait() - if err != nil { - if errSignalTerminated.Error() != err.Error() { - log.WithField("ide", ide.String()).WithError(err).Warn("IDE was stopped") - } + if err != nil && err.Error() != errSignalTerminated.Error() { + log.WithField("ide", ide.String()).WithError(err).Warn("IDE was stopped") ideWasReady, _ := ideReady.Get() if !ideWasReady {