forked from I2P_Developers/i2p.i2p
- Handle case where we already have torrent
- New Storage.main() for use in the release process - Make torrent files in release process - Stop tunnel after fatal if no snarks are running
This commit is contained in:
@ -748,6 +748,14 @@ public class SnarkManager implements CompleteListener {
|
||||
*/
|
||||
public Snark getTorrent(String filename) { synchronized (_snarks) { return _snarks.get(filename); } }
|
||||
|
||||
/**
|
||||
* Unmodifiable
|
||||
* @since 0.9.4
|
||||
*/
|
||||
public Collection<Snark> getTorrents() {
|
||||
return Collections.unmodifiableCollection(_snarks.values());
|
||||
}
|
||||
|
||||
/**
|
||||
* Grab the torrent given the base name of the storage
|
||||
* @return Snark or null
|
||||
|
Reference in New Issue
Block a user