Skip to content

Commit

Permalink
fix async bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Apr 4, 2014
1 parent 9958cc9 commit 341c15b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/devices/ios/ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -1086,8 +1086,18 @@ IOS.prototype.postCleanup = function (cb) {
async.series([
function (cb) { this.endSimulator(cb); }.bind(this),
function (cb) {
if (this.args.reset) this.cleanupAppState(cb);
if (this.args.fullReset) this.deleteSim(cb);
if (this.args.reset) {
this.cleanupAppState(cb);
} else {
cb();
}
}.bind(this),
function (cb) {
if (this.args.fullReset) {
this.deleteSim(cb);
} else {
cb();
}
}.bind(this),
], cb);
} else {
Expand Down

0 comments on commit 341c15b

Please sign in to comment.