Skip to content

Commit 854c81c

Browse files
sagor999roboquat
authored andcommitted
fix panic if ssh server failed to start
1 parent ec94c22 commit 854c81c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/supervisor/pkg/supervisor/supervisor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,8 @@ func startSSHServer(ctx context.Context, cfg *Config, wg *sync.WaitGroup, childP
12621262
go func() {
12631263
ssh, err := newSSHServer(ctx, cfg, childProcEnvvars)
12641264
if err != nil {
1265-
log.WithError(err).Error("err starting SSH server")
1265+
log.WithError(err).Error("err creating SSH server")
1266+
return
12661267
}
12671268

12681269
err = ssh.listenAndServe()

0 commit comments

Comments
 (0)