chore: delete expired location handler from client map (#30574)
This commit is contained in:
parent
4e2ea2280c
commit
ff35f651e6
|
|
@ -382,6 +382,8 @@ export class Page extends ChannelOwner<channels.PageChannel> implements api.Page
|
|||
}
|
||||
remove = handler?.times === 0;
|
||||
} finally {
|
||||
if (remove)
|
||||
this._locatorHandlers.delete(uid);
|
||||
this._wrapApiCall(() => this._channel.resolveLocatorHandlerNoReply({ uid, remove }), true).catch(() => {});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue