Don't print InterruptedExceptions in AbstractFileWatcher (#2044)

This commit is contained in:
Luck 2020-03-14 21:26:13 +00:00
parent fbac03e372
commit 3086724e92
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -126,10 +126,7 @@ public abstract class AbstractFileWatcher implements AutoCloseable {
WatchKey key;
try {
key = this.service.take();
} catch (InterruptedException e) {
e.printStackTrace();
break;
} catch (ClosedWatchServiceException e) {
} catch (InterruptedException | ClosedWatchServiceException e) {
break;
}