Skip to content

Commit

Permalink
Fix for race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Johanndutoit committed Oct 19, 2017
1 parent fe6ddeb commit 3a619ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module.exports = exports = function(options) {
ChromeClient.handlePageRequest = async function(params, fn) {

// make sure it's only called once
var callback = params.callback;
var callback = _.once(params.callback);

// return the rejection handler
var rejectionHandler = function(err) {
Expand Down

0 comments on commit 3a619ce

Please sign in to comment.