Wait for queued tasks to complete before processing subsequent tasks (#724)

This commit is contained in:
Karl Burtram
2018-10-31 09:48:57 -07:00
committed by GitHub
parent df023da0ba
commit adf10ece87

View File

@@ -377,8 +377,8 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
bindTask.ContinueWithOnFaulted(t => Logger.Write(TraceEventType.Error, "Binding queue threw exception " + t.Exception.ToString()));
// Give the task a chance to cancel before moving on to the next operation
Task.WaitAny(bindTask, Task.Delay(bindingContext.BindingTimeout));
// Give the task a chance to complete before moving on to the next operation
bindTask.Wait();
}
}
catch (Exception ex)