Skip to content

Commit

Permalink
Added line to throw an OperationCancelledException if the MoveNext is…
Browse files Browse the repository at this point in the history
… cancelled when the method is called
  • Loading branch information
ObsidianMinor committed Apr 7, 2017
1 parent 6c1fcef commit a0e71e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Gfycat.Net/FeedEnumerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public void Dispose()
/// <returns></returns>
public async Task<bool> MoveNext(CancellationToken cancellationToken)
{
cancellationToken.ThrowIfCancellationRequested();

if (!_currentEnumerator.MoveNext())
{
if (string.IsNullOrWhiteSpace(_currentFeed.Cursor))
Expand Down

0 comments on commit a0e71e7

Please sign in to comment.