Skip to content

Commit 3f0ea54

Browse files
committed
fix: close the Inspector proxy on runtime socket close in allow creating the proxy on app restart
1 parent 63b5192 commit 3f0ea54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/device-sockets/ios/app-debug-socket-proxy-factory.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ export class AppDebugSocketProxyFactory extends EventEmitter implements IAppDebu
6666
appDebugSocket.on("close", () => {
6767
this.$logger.info("Backend socket closed");
6868
frontendSocket.destroy();
69+
server.close();
70+
delete this.deviceTcpServers[cacheKey];
6971
});
7072

7173
appDebugSocket.pipe(frontendSocket);

0 commit comments

Comments
 (0)