Skip to content

Commit

Permalink
[Java] Change order of logic to make it easier to read.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Feb 26, 2018
1 parent 0ec92a4 commit dbed999
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ int controlledPoll(final SimpleFragmentHandler fragmentHandler, final int fragme

polled++;

if (replayLimit <= replayPosition)
if (replayPosition >= replayLimit)
{
isDone = true;
closeRecordingSegment();
Expand Down Expand Up @@ -191,7 +191,7 @@ private boolean refreshStopPositionAndLimit(final long replayPosition, final lon
replayLimit = newStopPosition;
}

if (replayLimit <= replayPosition)
if (replayPosition >= replayLimit)
{
isDone = true;
return false;
Expand Down

0 comments on commit dbed999

Please sign in to comment.