forked from I2P_Developers/i2p.i2p
Prevent double-save for now and auto start all torrents if autostart is already set (don't make the user restart each one).
This commit is contained in:
@@ -626,7 +626,10 @@ public class Snark
|
||||
pc.halt();
|
||||
Storage st = storage;
|
||||
if (st != null) {
|
||||
boolean changed = storage.isChanged() || getUploaded() != savedUploaded;
|
||||
// TODO: Cache the config-in-mem to compare vs config-on-disk
|
||||
// (needed for auto-save to not double-save in some cases)
|
||||
//boolean changed = storage.isChanged() || getUploaded() != savedUploaded;
|
||||
boolean changed = true;
|
||||
try {
|
||||
storage.close();
|
||||
} catch (IOException ioe) {
|
||||
|
||||
Reference in New Issue
Block a user