Skip to content

Commit

Permalink
Clear the enumerator in OnNext
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Nov 14, 2019
1 parent 628cba8 commit 87aa2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rx.NET/Source/src/System.Reactive/Linq/Observable/Zip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public override void OnNext(TFirst value)
{
if (Interlocked.Decrement(ref _enumerationInProgress) != 0)
{
currentEnumerator.Dispose();
Interlocked.Exchange(ref _rightEnumerator, DisposedEnumerator)?.Dispose();
wasDisposed = true;
}
}
Expand Down

0 comments on commit 87aa2b0

Please sign in to comment.