diff --git a/core/src/main/groovy/com/muwire/core/files/directories/WatchedDirectoryManager.groovy b/core/src/main/groovy/com/muwire/core/files/directories/WatchedDirectoryManager.groovy index 4e6758fd..c0f5e4d4 100644 --- a/core/src/main/groovy/com/muwire/core/files/directories/WatchedDirectoryManager.groovy +++ b/core/src/main/groovy/com/muwire/core/files/directories/WatchedDirectoryManager.groovy @@ -149,9 +149,10 @@ class WatchedDirectoryManager { log.warning("unshared a directory that wasn't watched? ${e.directory}") return } - - File persistFile = new File(home, wd.getEncodedName() + ".json") - persistFile.delete() + diskIO.submit({ + File persistFile = new File(home, wd.getEncodedName() + ".json") + persistFile.delete() + } as Runnable) } private void sync() {