From 94ce096e7a4f43003c5b5241734c4e55096e2cd5 Mon Sep 17 00:00:00 2001 From: Martin Bektchiev Date: Tue, 29 May 2018 13:14:16 +0300 Subject: [PATCH] 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 https://github.com/NativeScript/ios-runtime/issues/927 --- lib/device-sockets/ios/socket-proxy-factory.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/device-sockets/ios/socket-proxy-factory.ts b/lib/device-sockets/ios/socket-proxy-factory.ts index 368063faeb..c83fabf287 100644 --- a/lib/device-sockets/ios/socket-proxy-factory.ts +++ b/lib/device-sockets/ios/socket-proxy-factory.ts @@ -132,9 +132,7 @@ export class SocketProxyFactory extends EventEmitter implements ISocketProxyFact deviceSocket.on("close", () => { this.$logger.info("Backend socket closed!"); - if (!this.$options.watch) { - webSocket.close(); - } + webSocket.close(); }); webSocket.on("close", () => {