We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9de6400 commit 827dae6Copy full SHA for 827dae6
packages/protocol/src/browser/client.ts
@@ -174,9 +174,10 @@ export class Client {
174
* Make a remote call for a proxy's method using proto.
175
*/
176
private remoteCall(proxyId: number | Module, method: string, args: any[]): Promise<any> {
177
- if (this.disconnected && typeof proxyId === "number") {
178
- // Can assume killing or closing works because a disconnected proxy
179
- // is disposed on the server's side.
+ if (typeof proxyId === "number" && (this.disconnected || !this.proxies.has(proxyId))) {
+ // Can assume killing or closing works because a disconnected proxy is
+ // disposed on the server's side, and a non-existent proxy has already
180
+ // been disposed.
181
switch (method) {
182
case "close":
183
case "kill":
0 commit comments