Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit a0e71e7

Browse files
committed
Added line to throw an OperationCancelledException if the MoveNext is cancelled when the method is called
1 parent 6c1fcef commit a0e71e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Gfycat.Net/FeedEnumerator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public void Dispose()
4646
/// <returns></returns>
4747
public async Task<bool> MoveNext(CancellationToken cancellationToken)
4848
{
49+
cancellationToken.ThrowIfCancellationRequested();
50+
4951
if (!_currentEnumerator.MoveNext())
5052
{
5153
if (string.IsNullOrWhiteSpace(_currentFeed.Cursor))

0 commit comments

Comments
 (0)