From ffbacd296290ed1716fe9ba27f701640e774240a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miguel=20Moreno?= Date: Fri, 5 Jan 2024 15:27:14 +0100 Subject: [PATCH] Fixed exception when stopping storage - Updated ImageStorage class --- .../java/io/josemmo/bukkit/plugin/storage/ImageStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/josemmo/bukkit/plugin/storage/ImageStorage.java b/src/main/java/io/josemmo/bukkit/plugin/storage/ImageStorage.java index 643613d..e6085d4 100644 --- a/src/main/java/io/josemmo/bukkit/plugin/storage/ImageStorage.java +++ b/src/main/java/io/josemmo/bukkit/plugin/storage/ImageStorage.java @@ -352,7 +352,7 @@ public void run() { } key.reset(); } - } catch (InterruptedException __) { + } catch (ClosedWatchServiceException | InterruptedException __) { // Silently ignore exception, this is expected when service shuts down } catch (NullPointerException e) { LOGGER.severe("Watch service was stopped before watcher thread", e);