Attempt to fix failing build

This commit is contained in:
Phillip Webb 2015-06-09 00:03:23 -07:00
parent 9929e39124
commit c4dc381a21
1 changed files with 3 additions and 1 deletions

View File

@ -232,7 +232,9 @@ public class FileSystemWatcher {
Thread thread = this.watchThread;
if (thread != null) {
this.remainingScans.set(remainingScans);
thread.interrupt();
if (remainingScans <= 0) {
thread.interrupt();
}
if (Thread.currentThread() != thread) {
try {
thread.join();