mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-20 15:49:41 +00:00
Properly close file watcher on disable
https://github.com/lucko/LuckPerms/commit/5ce8217cd53a6540e0e9bd74a996538b55555059#r37466536
This commit is contained in:
2 files changed
+7
-3
No files matched your search
@@ -232,7 +232,7 @@ public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin {
|
||||
|
||||
// close file watcher
|
||||
if (this.fileWatcher != null) {
|
||||
//this.fileWatcher.close();
|
||||
this.fileWatcher.close();
|
||||
}
|
||||
|
||||
// unregister api
|
||||
|
||||
+6
-2
@@ -183,7 +183,11 @@ public abstract class AbstractFileWatcher implements AutoCloseable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
this.service.close();
|
||||
public void close() {
|
||||
try {
|
||||
this.service.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user