Skip to content

Commit

Permalink
Do not clobber rightful onBeforeSuspendableRequest listener
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Apr 12, 2023
1 parent 6fbbf78 commit 53978ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/common/vapi-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,7 @@ vAPI.Net = class {
// soon as there is a call to clear for one tab.
removeUnprocessedRequest() {
this.unprocessedTabs.clear();
if ( this.deferredSuspendableListener === undefined ) { return true; }
if ( this.unprocessedTabs.size !== 0 ) { return false; }
this.suspendableListener = this.deferredSuspendableListener;
this.deferredSuspendableListener = undefined;
Expand Down

0 comments on commit 53978ce

Please sign in to comment.