feat: clear net timeout and update interval
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user