提交 093cf36c 编写于 作者: H Heejae Chang

addressed PR feedback.

上级 2906a2e5
......@@ -143,8 +143,11 @@ private bool ReportUnlessCanceled(Exception ex, CancellationToken cancellationTo
/// <summary>
/// Show info bar and throw its own cancellation exception until
/// we figure out this issue
/// we figure out this issue.
/// https://devdiv.visualstudio.com/DevDiv/_workitems/edit/453544
///
/// the issue is basically we are getting unexpected exception from InvokeAsync
/// and we don't know exactly why that is happening.
/// </summary>
private void ThrowOwnCancellationToken()
{
......@@ -159,10 +162,11 @@ private void ThrowOwnCancellationToken()
}
// create its own cancellation token and throw it
var ownCancellationSource = new CancellationTokenSource();
ownCancellationSource.Cancel();
ownCancellationSource.Token.ThrowIfCancellationRequested();
using (var ownCancellationSource = new CancellationTokenSource())
{
ownCancellationSource.Cancel();
ownCancellationSource.Token.ThrowIfCancellationRequested();
}
}
private void ReportExtraInfoAsNFW(Exception ex)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册