This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git


The following commit(s) were added to refs/heads/master by this push:
     new fbcad9d  Fix inability to start the DefaultFileMonitor after it has 
been stopped (#55)
fbcad9d is described below

commit fbcad9d7002d2886e728f5abc03aed7c3ad34d76
Author: Boris Petrov <[email protected]>
AuthorDate: Thu Mar 21 16:23:33 2019 +0200

    Fix inability to start the DefaultFileMonitor after it has been stopped 
(#55)
---
 .../src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
index 747ac8a..5b80845 100644
--- 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
+++ 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
@@ -307,6 +307,8 @@ public class DefaultFileMonitor implements Runnable, 
FileMonitor {
      */
     public void stop() {
         this.shouldRun = false;
+        this.monitorThread.interrupt();
+        this.monitorThread = null;
     }
 
     /**

Reply via email to