Skip to content

Commit

Permalink
Merge pull request #3633 from NativeScript/bektchiev/ios-debug-close-…
Browse files Browse the repository at this point in the history
…frontend-socket

fix(ios-debugging): Close frontend socket unconditionally
  • Loading branch information
Fatme authored Jun 12, 2018
2 parents c08b575 + 94ce096 commit dff5ca4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/device-sockets/ios/socket-proxy-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit dff5ca4

Please sign in to comment.