feat: clear net timeout and update interval
This commit is contained in:
@@ -1599,6 +1599,13 @@ export class RemoteBrowser {
|
|||||||
this.domUpdateInterval = null;
|
this.domUpdateInterval = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.networkRequestTimeout) {
|
||||||
|
clearTimeout(this.networkRequestTimeout);
|
||||||
|
this.networkRequestTimeout = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.pendingNetworkRequests = [];
|
||||||
|
|
||||||
if (this.client) {
|
if (this.client) {
|
||||||
try {
|
try {
|
||||||
await this.client.send("DOM.disable");
|
await this.client.send("DOM.disable");
|
||||||
@@ -1627,6 +1634,10 @@ export class RemoteBrowser {
|
|||||||
clearInterval(this.screencastInterval);
|
clearInterval(this.screencastInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.domUpdateInterval) {
|
||||||
|
clearInterval(this.domUpdateInterval);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.client) {
|
if (this.client) {
|
||||||
await this.stopScreencast();
|
await this.stopScreencast();
|
||||||
await this.stopDOM();
|
await this.stopDOM();
|
||||||
|
|||||||
Reference in New Issue
Block a user