From aeffbc305dac889930b57f1a71e1fa7b63c607b8 Mon Sep 17 00:00:00 2001 From: Jeff Morgan Date: Tue, 9 Dec 2014 10:37:07 -0800 Subject: [PATCH] Fixing but where app would not be deleted --- meteor/client/lib/apputil.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meteor/client/lib/apputil.js b/meteor/client/lib/apputil.js index 8ceb1c8133..80bc9b7027 100644 --- a/meteor/client/lib/apputil.js +++ b/meteor/client/lib/apputil.js @@ -68,10 +68,11 @@ AppUtil.remove = function (appId) { var app = Apps.findOne(appId); if (app.docker) { Docker.removeContainer(app.docker.Id, function (err) { - Apps.remove({_id: appId}); var appPath = path.join(Util.KITE_PATH, app.name); Util.deleteFolder(appPath); }); + } else { + Apps.remove({_id: appId}); } };