cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [2/5] git commit: Force app quit before push
Date Wed, 09 Jul 2014 13:32:37 GMT
Force app quit before push


Project: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/commit/d238bed9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/tree/d238bed9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/diff/d238bed9

Branch: refs/heads/master
Commit: d238bed9879f16564bb820a4d0104a428f1a6b6e
Parents: 9941234
Author: David Kemp <drkemp@chromium.org>
Authored: Tue Jun 24 08:40:13 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed Jun 25 09:49:13 2014 -0400

----------------------------------------------------------------------
 harness-push/harness-push.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/d238bed9/harness-push/harness-push.js
----------------------------------------------------------------------
diff --git a/harness-push/harness-push.js b/harness-push/harness-push.js
index 86896a0..c30247c 100755
--- a/harness-push/harness-push.js
+++ b/harness-push/harness-push.js
@@ -71,7 +71,7 @@ function main() {
             usage();
         }
         var pushSession = client.createPushSession(args.argv.remain[1]);
-        pushSession.push().then(onSuccess, onFailure);
+        client.quit().then(pushSession.push().then(onSuccess, onFailure));
     } else if (cmd == 'deleteall') {
         client.deleteAllApps();
     } else if (cmd == 'delete') {


Mime
View raw message