forked from I2P_Developers/i2p.i2p
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user