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