Skip to content

Commit 60eba82

Browse files
committed
fix: avoid losing the whole proxy server when closing a single client
1 parent 95e9cbb commit 60eba82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ export class AppDebugSocketProxyFactory extends EventEmitter implements IAppDebu
158158

159159
webSocket.on("close", () => {
160160
this.$logger.info('Frontend socket closed!');
161+
appDebugSocket.unpipe(packets);
161162
packets.destroy();
162-
device.destroyDebugSocket(appId);
163163
if (!this.$options.watch) {
164164
process.exit(0);
165165
}

0 commit comments

Comments
 (0)