From eb218c33caaf79ee8c53f7782dec185105a1079e Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 20 Jul 2025 00:08:51 +0200 Subject: [PATCH] Fix missing `key.reset()` in BackendSync directory watch logic --- VelocityCore/src/de/steamwar/velocitycore/BackendSync.java | 1 + 1 file changed, 1 insertion(+) diff --git a/VelocityCore/src/de/steamwar/velocitycore/BackendSync.java b/VelocityCore/src/de/steamwar/velocitycore/BackendSync.java index 146b6f87..bbbd64a7 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/BackendSync.java +++ b/VelocityCore/src/de/steamwar/velocitycore/BackendSync.java @@ -86,6 +86,7 @@ public class BackendSync implements Runnable { Files.delete(path); } } + key.reset(); } } catch (InterruptedException | ClosedWatchServiceException ignored) { Thread.currentThread().interrupt();