Fix auto-start of new .torrents in the Snark folder

This commit is contained in:
dg2-new
2015-09-07 18:18:16 +00:00
parent c4cbd7d5c4
commit de2431e9ee
2 changed files with 3 additions and 3 deletions

View File

@ -1247,7 +1247,7 @@ public class SnarkManager implements CompleteListener {
_log.info("New Snark, torrent: " + filename + " base: " + baseFile);
torrent = new Snark(_util, filename, null, -1, null, null, this,
_peerCoordinatorSet, _connectionAcceptor,
false, dataDir.getPath(), baseFile);
shouldAutoStart(), dataDir.getPath(), baseFile);
loadSavedFilePriorities(torrent);
synchronized (_snarks) {
_snarks.put(filename, torrent);
@ -1278,7 +1278,7 @@ public class SnarkManager implements CompleteListener {
running = true;
} else {
running = false;
}
}
// Were we running last time?
if (!dontAutoStart && shouldAutoStart() && running) {
torrent.startTorrent();

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 6;
public final static long BUILD = 7;
/** for example "-test" */
public final static String EXTRA = "-rc";