forked from I2P_Developers/i2p.i2p
i2psnark: Prevent start-all from within search results erroring on...
This commit is contained in:
@ -1579,6 +1579,8 @@ public class I2PSnarkServlet extends BasicServlet {
|
||||
// TODO thread it
|
||||
int count = 0;
|
||||
for (Snark snark : matches) {
|
||||
if (!snark.isStopped())
|
||||
continue;
|
||||
_manager.startTorrent(snark);
|
||||
if ((count++ & 0x0f) == 15) {
|
||||
// try to prevent OOMs
|
||||
|
Reference in New Issue
Block a user