mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -05:00
Wait for queued tasks to complete before processing subsequent tasks (#724)
This commit is contained in:
@@ -377,8 +377,8 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
|
|||||||
|
|
||||||
bindTask.ContinueWithOnFaulted(t => Logger.Write(TraceEventType.Error, "Binding queue threw exception " + t.Exception.ToString()));
|
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
|
// Give the task a chance to complete before moving on to the next operation
|
||||||
Task.WaitAny(bindTask, Task.Delay(bindingContext.BindingTimeout));
|
bindTask.Wait();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
Reference in New Issue
Block a user