Skip to content

Commit 7d06687

Browse files
author
utam0k
committed
supervisor: Ignore the terminated signal
1 parent 801de49 commit 7d06687

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

components/supervisor/pkg/supervisor/supervisor.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -821,10 +821,8 @@ func launchIDE(cfg *Config, ideConfig *IDEConfig, cmd *exec.Cmd, ideStopped chan
821821
}()
822822

823823
err = cmd.Wait()
824-
if err != nil {
825-
if errSignalTerminated.Error() != err.Error() {
826-
log.WithField("ide", ide.String()).WithError(err).Warn("IDE was stopped")
827-
}
824+
if err != nil && err.Error() != errSignalTerminated.Error() {
825+
log.WithField("ide", ide.String()).WithError(err).Warn("IDE was stopped")
828826

829827
ideWasReady, _ := ideReady.Get()
830828
if !ideWasReady {

0 commit comments

Comments
 (0)