Skip to content

Commit 515f67e

Browse files
das7paddwnusbaum
andauthored
More robust check for stopping at previously determined EOF
Co-authored-by: Devin Nusbaum <dwnusbaum@users.noreply.github.com>
1 parent f4d6f1e commit 515f67e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jenkinsci/plugins/workflow/log/FileLogStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public int read(@NonNull byte[] b) throws IOException {
465465

466466
@Override
467467
public int read(@NonNull byte[] b, int off, int len) throws IOException {
468-
if (stepLogPos == stepLogSize) {
468+
if (stepLogPos >= stepLogSize) {
469469
return -1;
470470
}
471471
ensureOpen();

0 commit comments

Comments
 (0)