diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 01dbb2b84..a4b9c585e 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -1227,9 +1227,13 @@ vAPI.Net = class { this.suspendDepth += 1; } } - unsuspend() { + unsuspend(all = false) { if ( this.suspendDepth === 0 ) { return; } - this.suspendDepth -= 1; + if ( all ) { + this.suspendDepth = 0; + } else { + this.suspendDepth -= 1; + } if ( this.suspendDepth !== 0 ) { return; } this.unsuspendAllRequests(this.suspendableListener); } diff --git a/src/js/traffic.js b/src/js/traffic.js index a69f1796a..56da0a93d 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -1070,7 +1070,7 @@ return { [ 'blocking', 'requestBody' ] ); } - vAPI.net.unsuspend(); + vAPI.net.unsuspend(true); }; })(),