Skip to content

Commit

Permalink
Merge pull request #2727 from dls-controls/css611_disconnect_display
Browse files Browse the repository at this point in the history
Latest data point not plotted after a disconnect
  • Loading branch information
shroffk authored Apr 2, 2024
2 parents 6b1fce6 + 21b3630 commit 2d7b472
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ protected void fetchDataInternal(String pvName) throws ArchiverApplianceExceptio
*/
@Override
public synchronized boolean hasNext() {
return !closed && mainIterator != null && mainIterator.hasNext();
boolean hasNext = !closed && mainIterator != null && mainIterator.hasNext();
if (reuseMessage && !hasNext) {
hasNext = true;
}
return hasNext;
}

/*
Expand Down

0 comments on commit 2d7b472

Please sign in to comment.