Skip to content

Commit

Permalink
Merge pull request #270 from YusukeIwaki/fix-264
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeIwaki committed Oct 6, 2022
2 parents 13cd9a5 + 95da2e5 commit 57eb40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppeteer/lifecycle_watcher.rb
Expand Up @@ -100,7 +100,7 @@ def handle_request(request)
# Resolve previous navigation response in case there are multiple
# navigation requests reported by the backend. This generally should not
# happen by it looks like it's possible.
@navigation_response_received&.fulfill(nil)
@navigation_response_received.fulfill(nil) if @navigation_response_received && !@navigation_response_received.resolved?
@navigation_response_received = resolvable_future
if request.response && !@navigation_response_received.resolved?
@navigation_response_received.fulfill(nil)
Expand Down

0 comments on commit 57eb40b

Please sign in to comment.