From b2d68b2140e3f5dcd23dcd688c2c1e7500c5ebf1 Mon Sep 17 00:00:00 2001 From: beepboopbelong Date: Mon, 13 Apr 2020 22:37:02 +0200 Subject: [PATCH] Fixed parrallel loop --- source/sites/nhentai.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sites/nhentai.d b/source/sites/nhentai.d index ce1023d..ef2c4f0 100644 --- a/source/sites/nhentai.d +++ b/source/sites/nhentai.d @@ -88,7 +88,7 @@ class NHentai : BaseSite // Loop over the range in parallel to make it faster auto range = new int[pageNumber]; - foreach(i; parallel(range)) + foreach(i, ref element; parallel(range)) { // Craft the url with all parameters string extractedUrl = imageUrl ~ contentIDMatch ~ "/" ~ to!string(i) ~ ".jpg";