- 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:
zzz
2012-10-22 22:55:36 +00:00
parent bd9ad9982b
commit efb986ffd9
4 changed files with 97 additions and 9 deletions

View File

@ -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