From 066ee2c96dca625f9118a0fdded803d023a52c8d Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Sat, 6 Jul 2019 11:28:04 +0100 Subject: [PATCH] wrong list --- core/src/main/groovy/com/muwire/core/download/Pieces.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/download/Pieces.groovy b/core/src/main/groovy/com/muwire/core/download/Pieces.groovy index 1915a5ce..adf17abc 100644 --- a/core/src/main/groovy/com/muwire/core/download/Pieces.groovy +++ b/core/src/main/groovy/com/muwire/core/download/Pieces.groovy @@ -58,7 +58,7 @@ class Pieces { int rv = available.first() return [rv, partials.getOrDefault(rv, 0), 1] } - List toList = available.toList() + List toList = availableCopy.toList() Collections.shuffle(toList) int rv = toList[0] claimed.set(rv)