i2psnark: Fix IOOBE when stopping torrent that is allocating (ticket #2273)

more sync in PartialPiece
This commit is contained in:
zzz
2018-07-05 12:57:01 +00:00
parent 7d9207dc81
commit 43c2018177
4 changed files with 24 additions and 5 deletions

View File

@@ -546,7 +546,7 @@ class PeerState implements DataLoader
synchronized(pp) {
int dl = pp.getDownloaded();
if (req.off != dl)
req = new Request(pp, dl, 1);
req = new Request(pp, dl);
}
rv.add(req);
}