Attempt to fix failing build
This commit is contained in:
parent
9929e39124
commit
c4dc381a21
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue