* i2psnark:

- Add torrent auto-stop support; enable for update file
   - Add tunnel auto-close when no torrents are running
   - Log/msg tweaks on add/create failures
This commit is contained in:
zzz
2013-10-04 16:40:14 +00:00
parent e04cf132cc
commit e755051ebe
7 changed files with 70 additions and 10 deletions

View File

@@ -237,6 +237,7 @@ public class Snark
private final PeerCoordinatorSet _peerCoordinatorSet;
private String trackerProblems;
private int trackerSeenPeers;
private boolean _autoStoppable;
/** from main() via parseArguments() single torrent */
@@ -905,6 +906,16 @@ public class Snark
return additionalTrackerURL;
}
/**
* @since 0.9.9
*/
public boolean isAutoStoppable() { return _autoStoppable; }
/**
* @since 0.9.9
*/
public void setAutoStoppable(boolean yes) { _autoStoppable = yes; }
/**
* Sets debug, ip and torrent variables then creates a Snark
* instance. Calls usage(), which terminates the program, if