Author: imario
Date: Mon May 14 11:26:40 2007
New Revision: 537938
URL: http://svn.apache.org/viewvc?view=rev&rev=537938
Log:
VFS-147: Use monitorThread instead of Thread.currentThread - Thanks to Adam
Heath for the patch!
Modified:
jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/DefaultFileMonitor.java
Modified:
jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/DefaultFileMonitor.java
URL:
http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/DefaultFileMonitor.java?view=diff&rev=537938&r1=537937&r2=537938
==============================================================================
---
jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/DefaultFileMonitor.java
(original)
+++
jakarta/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/impl/DefaultFileMonitor.java
Mon May 14 11:26:40 2007
@@ -23,7 +23,6 @@
import org.apache.commons.vfs.FileName;
import org.apache.commons.vfs.FileObject;
import org.apache.commons.vfs.FileSystemException;
-import org.apache.commons.vfs.FileType;
import org.apache.commons.vfs.provider.AbstractFileSystem;
import java.util.HashMap;
@@ -346,7 +345,7 @@
public void run()
{
mainloop:
- while (!Thread.currentThread().isInterrupted() && this.shouldRun)
+ while (!monitorThread.isInterrupted() && this.shouldRun)
{
while (!this.deleteStack.empty())
{
@@ -388,7 +387,7 @@
}
}
- if (Thread.currentThread().isInterrupted() || !this.shouldRun)
+ if (monitorThread.isInterrupted() || !this.shouldRun)
{
continue mainloop;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]