Skip to content

Commit

Permalink
fix: nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcStdt committed Dec 12, 2024
1 parent 150120c commit cc6dd45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ to interact and monitor the Scroll Application`,
finish := coldStarter.Start(ctx)
executedPort := <-finish

if executedPort == nil || executedPort.FinishAfterCommand == "" {
if executedPort == nil {
coldStarter.Stop(0)
} else if executedPort.FinishAfterCommand == "" {
coldStarter.Stop(executedPort.StartDelay)
}

Expand Down

0 comments on commit cc6dd45

Please sign in to comment.