Skip to content

Commit

Permalink
fix(launcher): exclude concurrent browser on launcher restart
Browse files Browse the repository at this point in the history
Fixes #2280
  • Loading branch information
SteveVanOpstal authored and dignifiedquire committed Aug 27, 2016
1 parent 173ee47 commit 96f8f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ var Launcher = function (server, emitter, injector) {
browser.on('done', function () {
// We are not done if there was an error as first the retry takes
// place which we catch with `browser_process_failure` if it fails
if (browser.error) return
if (browser.error || browser.state === browser.STATE_RESTARTING) return

done(null, browser)
})
Expand Down

0 comments on commit 96f8f14

Please sign in to comment.