We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fa49cc commit 3927044Copy full SHA for 3927044
internal/orchestrator/orchestrator.go
@@ -452,12 +452,12 @@ func RestartApp(
452
return
453
}
454
455
- if runningApp != nil && runningApp.FullPath.String() != appToStart.FullPath.String() {
456
- yield(StreamMessage{error: fmt.Errorf("another app %q is running", runningApp.Name)})
457
- return
458
- }
459
-
460
if runningApp != nil {
+ if runningApp.FullPath.String() != appToStart.FullPath.String() {
+ yield(StreamMessage{error: fmt.Errorf("another app %q is running", runningApp.Name)})
+ return
+ }
+
461
stopStream := StopApp(ctx, *runningApp)
462
for msg := range stopStream {
463
if !yield(msg) {
0 commit comments