Skip to content
This repository was archived by the owner on Nov 7, 2020. It is now read-only.

Commit

Permalink
Fix async
Browse files Browse the repository at this point in the history
  • Loading branch information
yourcelf committed Apr 21, 2016
1 parent 0c14d17 commit a6586c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/prepare-load-simulator-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ function create(callback) {
sess.destroy({success: resolve, error: reject});
});
}))
.then(function() { done(null, event); });
.then(function() { done(null, event); })
.catch(function(err) { done(err, event); });
} else {
done(null, event);
}
},
// Create new sessions
Expand Down

0 comments on commit a6586c3

Please sign in to comment.