From ba0c61329af93911a4559359a026d81ed54c636d Mon Sep 17 00:00:00 2001 From: Sara Itani Date: Mon, 14 Dec 2015 19:33:21 -0800 Subject: [PATCH] #604 Runtime syntax error kills Visual Studio - we should be exiting the debug-connect loop when the connection is closed. --- .../Product/Nodejs/Debugger/Communication/DebuggerConnection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nodejs/Product/Nodejs/Debugger/Communication/DebuggerConnection.cs b/Nodejs/Product/Nodejs/Debugger/Communication/DebuggerConnection.cs index d46afc922..d4968c683 100644 --- a/Nodejs/Product/Nodejs/Debugger/Communication/DebuggerConnection.cs +++ b/Nodejs/Product/Nodejs/Debugger/Communication/DebuggerConnection.cs @@ -147,7 +147,7 @@ public void Connect(Uri uri) { throw; } LiveLogger.WriteLine("Connection attempt {0} failed with: {1}", connection_attempts, ex); - if (connection_attempts >= MAX_ATTEMPTS && !_isClosed) { + if (_isClosed || connection_attempts >= MAX_ATTEMPTS) { throw; } else {