Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
Expand Down Expand Up @@ -109,8 +109,10 @@ internal CancellationScope(

public void Dispose()
{
// TODO: This is whack. It used to call `Cancel` on the cancellation source, but we
// shouldn't do that!
_cancellationSource.Dispose();
_cancellationStack.TryPop(out CancellationScope _);
_cancellationSource.Cancel();
}
}
}