Skip to content

Commit 94ce096

Browse files
committed
fix(ios-debugging): Close frontend socket unconditionally
There's no need to keep the frontend socket open after its corresponding backend socket disconnects. This misleads the Inspector UI that it is still connected with a backend. A part of the fix to NativeScript/ios-jsc#927
1 parent 9c9cdcf commit 94ce096

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ export class SocketProxyFactory extends EventEmitter implements ISocketProxyFact
132132

133133
deviceSocket.on("close", () => {
134134
this.$logger.info("Backend socket closed!");
135-
if (!this.$options.watch) {
136-
webSocket.close();
137-
}
135+
webSocket.close();
138136
});
139137

140138
webSocket.on("close", () => {

0 commit comments

Comments
 (0)