From cbf66b620e9913682927b738bb5c7e603c94601d Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Sat, 12 Jun 2021 15:57:56 +0100 Subject: [PATCH] fix construction of event --- core/src/main/groovy/com/muwire/core/files/FileManager.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/groovy/com/muwire/core/files/FileManager.groovy b/core/src/main/groovy/com/muwire/core/files/FileManager.groovy index 82125dd6..e8e583f8 100644 --- a/core/src/main/groovy/com/muwire/core/files/FileManager.groovy +++ b/core/src/main/groovy/com/muwire/core/files/FileManager.groovy @@ -277,8 +277,8 @@ class FileManager { def cb = new DirDeletionCallback() positiveTree.traverse(e.directory, cb) positiveTree.remove(e.directory) - eventBus.publish(new FileUnsharedEvent()unsharedFiles: cb.unsharedFiles.toArray(new SharedFile[0]), - deleted: true) + eventBus.publish(new FileUnsharedEvent(unsharedFiles: cb.unsharedFiles.toArray(new SharedFile[0]), + deleted: true)) cb.subDirs.each { eventBus.publish(new DirectoryUnsharedEvent(directory : it, deleted : true)) }