binding queue should not throw excpetion if fails to connect (#542)

This commit is contained in:
Leila Lali
2017-11-02 17:53:18 +00:00
committed by Karl Burtram
parent 17e7ddd66f
commit 54c29f20a6
2 changed files with 9 additions and 1 deletions

View File

@@ -316,6 +316,7 @@ namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery.RestoreOperation
}
catch(Exception ex)
{
Logger.Write(LogLevel.Normal, $"Failed to execute restore task. error: {ex.Message}");
throw ex;
}
finally

View File

@@ -125,7 +125,14 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
{
if (bindingContext.BindingLock.WaitOne(millisecondsTimeout))
{
bindingContext.ServerConnection.Connect();
try
{
bindingContext.ServerConnection.Connect();
}
catch
{
//TODO: remove the binding context?
}
}
}
}