mirror of https://github.com/zlatinb/muwire
Fix sidecar files larger than the limit from being shared
parent
c154d9538d
commit
1c396711ed
|
@ -36,9 +36,10 @@ class HasherService {
|
||||||
return
|
return
|
||||||
if (canonical.isFile() && fileManager.negativeTree.fileToNode.containsKey(canonical))
|
if (canonical.isFile() && fileManager.negativeTree.fileToNode.containsKey(canonical))
|
||||||
return
|
return
|
||||||
if (canonical.getName().endsWith(".mwcomment") && canonical.length() <= Constants.MAX_COMMENT_LENGTH)
|
if (canonical.getName().endsWith(".mwcomment")) {
|
||||||
eventBus.publish(new SideCarFileEvent(file : canonical))
|
if (canonical.length() <= Constants.MAX_COMMENT_LENGTH)
|
||||||
else if (hashed.add(canonical))
|
eventBus.publish(new SideCarFileEvent(file : canonical))
|
||||||
|
} else if (hashed.add(canonical))
|
||||||
executor.execute( { -> process(canonical) } as Runnable)
|
executor.execute( { -> process(canonical) } as Runnable)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue