i2psnark: Prevent start-all from within search results erroring on...

This commit is contained in:
zzz
2023-09-26 02:16:51 +00:00
committed by idk
parent 69d5dfc621
commit 38f629b91c

View File

@ -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