From ef378d3d5c577699af5233cc84f1328df123dc6f Mon Sep 17 00:00:00 2001 From: John Lambert Date: Fri, 18 Oct 2024 16:41:57 -0400 Subject: [PATCH] Reviewer comments. --- src/SIL.Machine/Corpora/ParallelTextCorpus.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SIL.Machine/Corpora/ParallelTextCorpus.cs b/src/SIL.Machine/Corpora/ParallelTextCorpus.cs index 5f298de6..2f8a4884 100644 --- a/src/SIL.Machine/Corpora/ParallelTextCorpus.cs +++ b/src/SIL.Machine/Corpora/ParallelTextCorpus.cs @@ -576,15 +576,16 @@ public bool MoveNext() return false; } - bool result = _enumerator.MoveNext(); + _enumeratorHasMoreData = _enumerator.MoveNext(); _current = _enumerator.Current; - return result; + return _enumeratorHasMoreData; } public void Reset() { _enumerator.Reset(); _isEnumerating = false; + _enumeratorHasMoreData = true; } protected override void DisposeManagedResources()