Stopping edgeapp before removing

This commit is contained in:
Paulo Truta
2021-03-04 15:53:49 +00:00
parent 8f14a7cd15
commit 74cbff1966
+2
View File
@@ -283,6 +283,8 @@ func taskRemoveEdgeApp(args taskRemoveEdgeAppArgs) string {
fmt.Println("Executing taskRemoveEdgeApp for " + args.ID)
// Making sure the application is stopped before setting it as removed.
edgeapps.StopEdgeApp(args.ID)
result := edgeapps.SetEdgeAppNotInstalled(args.ID)
resultJSON, _ := json.Marshal(result)