Skip to content

Commit cc6dd45

Browse files
committed
fix: nil pointer
1 parent 150120c commit cc6dd45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/serve.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ to interact and monitor the Scroll Application`,
166166
finish := coldStarter.Start(ctx)
167167
executedPort := <-finish
168168

169-
if executedPort == nil || executedPort.FinishAfterCommand == "" {
169+
if executedPort == nil {
170+
coldStarter.Stop(0)
171+
} else if executedPort.FinishAfterCommand == "" {
170172
coldStarter.Stop(executedPort.StartDelay)
171173
}
172174

0 commit comments

Comments
 (0)