Commit c4dc381a authored by Phillip Webb's avatar Phillip Webb

Attempt to fix failing build

parent 9929e391
...@@ -232,7 +232,9 @@ public class FileSystemWatcher { ...@@ -232,7 +232,9 @@ public class FileSystemWatcher {
Thread thread = this.watchThread; Thread thread = this.watchThread;
if (thread != null) { if (thread != null) {
this.remainingScans.set(remainingScans); this.remainingScans.set(remainingScans);
thread.interrupt(); if (remainingScans <= 0) {
thread.interrupt();
}
if (Thread.currentThread() != thread) { if (Thread.currentThread() != thread) {
try { try {
thread.join(); thread.join();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment