mirror of https://github.com/zlatinb/muwire
allow up to exact max comment length
parent
ae651cb6bd
commit
11007e5f19
|
@ -34,7 +34,7 @@ class HasherService {
|
|||
return
|
||||
if (fileManager.fileToSharedFile.containsKey(canonical))
|
||||
return
|
||||
if (canonical.getName().endsWith(".mwcomment") && canonical.length() < Constants.MAX_COMMENT_LENGTH)
|
||||
if (canonical.getName().endsWith(".mwcomment") && canonical.length() <= Constants.MAX_COMMENT_LENGTH)
|
||||
eventBus.publish(new SideCarFileEvent(file : canonical))
|
||||
else if (hashed.add(canonical))
|
||||
executor.execute( { -> process(canonical) } as Runnable)
|
||||
|
|
Loading…
Reference in New Issue