(zzz) i2psnark: Save torrent completion status in i2psnark.config

This commit is contained in:
zzz
2007-03-18 21:43:41 +00:00
committed by zzz
parent cf4a9ffc27
commit 6a7dbc8e3a
3 changed files with 124 additions and 4 deletions

View File

@@ -468,6 +468,8 @@ public class Snark
pc.halt();
Storage st = storage;
if (st != null) {
if (storage.changed)
SnarkManager.instance().saveTorrentStatus(storage.getMetaInfo(), storage.getBitField());
try {
storage.close();
} catch (IOException ioe) {