Fix borked snarkmanager.java before anyone notices.
This commit is contained in:
@ -324,7 +324,7 @@ public class SnarkManager implements Snark.CompleteListener {
|
|||||||
Snark snark = getTorrent(name);
|
Snark snark = getTorrent(name);
|
||||||
if ( (snark != null) && (snark.acceptor != null) ) {
|
if ( (snark != null) && (snark.acceptor != null) ) {
|
||||||
snark.acceptor.restart();
|
snark.acceptor.restart();
|
||||||
addMessage("I2CP listener restarted for " + snark.meta.getName()) +".";
|
addMessage("I2CP listener restarted for " + snark.meta.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -334,8 +334,8 @@ public class SnarkManager implements Snark.CompleteListener {
|
|||||||
}
|
}
|
||||||
if (shouldAutoStart() != autoStart) {
|
if (shouldAutoStart() != autoStart) {
|
||||||
_config.setProperty(PROP_AUTO_START, autoStart + "");
|
_config.setProperty(PROP_AUTO_START, autoStart + "");
|
||||||
addMessage("Autostart of torrents set to " + autoStart);
|
addMessage("Adjusted autostart to " + autoStart);
|
||||||
changed = true + ".";
|
changed = true;
|
||||||
}
|
}
|
||||||
if (_util.shouldUseOpenTrackers() != useOpenTrackers) {
|
if (_util.shouldUseOpenTrackers() != useOpenTrackers) {
|
||||||
_config.setProperty(I2PSnarkUtil.PROP_USE_OPENTRACKERS, useOpenTrackers + "");
|
_config.setProperty(I2PSnarkUtil.PROP_USE_OPENTRACKERS, useOpenTrackers + "");
|
||||||
@ -391,8 +391,8 @@ public class SnarkManager implements Snark.CompleteListener {
|
|||||||
try {
|
try {
|
||||||
filename = sfile.getCanonicalPath();
|
filename = sfile.getCanonicalPath();
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
_log.error("Unable to add the torrent " + filename, ioe) + ".";
|
_log.error("Unable to add the torrent " + filename, ioe);
|
||||||
addMessage("ERR: Could not add the torrent '" + filename + "': " + ioe.getMessage()) + ".";
|
addMessage("ERR: Could not add the torrent '" + filename + "': " + ioe.getMessage());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
File dataDir = getDataDir();
|
File dataDir = getDataDir();
|
||||||
@ -431,7 +431,7 @@ public class SnarkManager implements Snark.CompleteListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
addMessage("Torrent in " + sfile.getName() + " is invalid: " + ioe.getMessage()) +".";
|
addMessage("Torrent in " + sfile.getName() + " is invalid: " + ioe.getMessage());
|
||||||
if (sfile.exists())
|
if (sfile.exists())
|
||||||
sfile.delete();
|
sfile.delete();
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user