feat: clear net timeout and update interval

This commit is contained in:
Rohit
2025-06-30 16:23:05 +05:30
parent e0020437f5
commit 0b765ff756

View File

@@ -1599,6 +1599,13 @@ export class RemoteBrowser {
this.domUpdateInterval = null;
}
if (this.networkRequestTimeout) {
clearTimeout(this.networkRequestTimeout);
this.networkRequestTimeout = null;
}
this.pendingNetworkRequests = [];
if (this.client) {
try {
await this.client.send("DOM.disable");
@@ -1627,6 +1634,10 @@ export class RemoteBrowser {
clearInterval(this.screencastInterval);
}
if (this.domUpdateInterval) {
clearInterval(this.domUpdateInterval);
}
if (this.client) {
await this.stopScreencast();
await this.stopDOM();