diff --git a/platform/common/vapi-background.js b/platform/common/vapi-background.js index 4f72f5bfca708..9dce78ec24aa1 100644 --- a/platform/common/vapi-background.js +++ b/platform/common/vapi-background.js @@ -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;