From 316e177c1d18658d9ba20aa76ee5c3042c544fd8 Mon Sep 17 00:00:00 2001 From: Luck Date: Thu, 26 Apr 2018 18:44:53 +0100 Subject: [PATCH] Exclude temporary file changes from FileWatcher (#945) --- .../me/lucko/luckperms/common/storage/dao/file/FileWatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/dao/file/FileWatcher.java b/common/src/main/java/me/lucko/luckperms/common/storage/dao/file/FileWatcher.java index fa0c5151..365f7ae6 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/dao/file/FileWatcher.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/dao/file/FileWatcher.java @@ -164,7 +164,7 @@ public class FileWatcher { String fileName = context.toString(); // ignore temporary changes - if (fileName.endsWith(".tmp")) { + if (fileName.endsWith(".tmp") || fileName.endsWith(".swp") || fileName.endsWith(".swx") || fileName.endsWith(".swpz")) { continue; }