Skip to content

Commit 83e8dfb

Browse files
committed
Make run field volatile because it is shared between threads
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1002908 13f79535-47bb-0310-9956-ffa450edef68
1 parent 61256c1 commit 83e8dfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class Tailer implements Runnable {
6161
/**
6262
* The tailer will run as long as this value is true.
6363
*/
64-
private boolean run = true;
64+
private volatile boolean run = true;
6565

6666
/**
6767
* The object which will be responsible for actually reading the file.

0 commit comments

Comments
 (0)