mirror of https://github.com/zlatinb/muwire
do not emit event if there were no unshared files
parent
39f3476158
commit
4b50575c13
|
@ -264,7 +264,8 @@ class FileManager {
|
|||
}
|
||||
}
|
||||
}
|
||||
eventBus.publish(new FileUnsharedEvent(unsharedFiles : unsharedFiles.toArray(new SharedFile[0])))
|
||||
if (!unsharedFiles.isEmpty())
|
||||
eventBus.publish(new FileUnsharedEvent(unsharedFiles : unsharedFiles.toArray(new SharedFile[0])))
|
||||
} else {
|
||||
def cb = new DirDeletionCallback()
|
||||
positiveTree.traverse(e.directory, cb)
|
||||
|
|
Loading…
Reference in New Issue