Skip to content

Commit 45fbfb8

Browse files
davidmotenPascalSchumacher
authored andcommitted
IO-528: fix Tailer.run race condition runaway logging (closes #29)
1 parent 4b5fa7d commit 45fbfb8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/org/apache/commons/io/input/Tailer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ public void run() {
446446
} catch (final FileNotFoundException e) {
447447
// in this case we continue to use the previous reader and position values
448448
listener.fileNotFound();
449+
Thread.sleep(delayMillis);
449450
}
450451
continue;
451452
} else {

0 commit comments

Comments
 (0)