AppRunner: Fix process restart
Wait will always return an error as we just killed the process
Change-Id: I329b25811a3c7502d7e3ebe964acbe14ae14d1dc
diff --git a/apps/app-runner/server.go b/apps/app-runner/server.go
index 8095a4b..b906e7b 100644
--- a/apps/app-runner/server.go
+++ b/apps/app-runner/server.go
@@ -82,12 +82,9 @@
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
- err = s.cmd.Wait()
+ // NOTE(gio): No need to check err as we just killed the process
+ s.cmd.Wait()
s.cmd = nil
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
}
if err := os.RemoveAll(s.appDir); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)