mirror of https://github.com/zlatinb/muwire
utility method to check if an infohash is shared
parent
b9333913c6
commit
a07f01b641
|
@ -193,6 +193,10 @@ class FileManager {
|
|||
Set<SharedFile> getSharedFiles(byte []root) {
|
||||
return rootToFiles.get(new InfoHash(root))
|
||||
}
|
||||
|
||||
boolean isShared(InfoHash infoHash) {
|
||||
rootToFiles.containsKey(infoHash)
|
||||
}
|
||||
|
||||
void onSearchEvent(SearchEvent e) {
|
||||
// hash takes precedence
|
||||
|
|
Loading…
Reference in New Issue