From a070c4fa1035ba5fefd729479a77a11c65e49247 Mon Sep 17 00:00:00 2001 From: Santeri Korri Date: Tue, 3 Dec 2024 17:22:30 +0200 Subject: [PATCH] =?UTF-8?q?OK-611=20Korjattu=20bugi=20limitterien=20s?= =?UTF-8?q?=C3=A4=C3=A4t=C3=A4misess=C3=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kooste/valintalaskenta/actor/ConcurrencyLimiter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fi/vm/sade/valinta/kooste/valintalaskenta/actor/ConcurrencyLimiter.java b/src/main/java/fi/vm/sade/valinta/kooste/valintalaskenta/actor/ConcurrencyLimiter.java index 451ab2b95..c66b585e5 100644 --- a/src/main/java/fi/vm/sade/valinta/kooste/valintalaskenta/actor/ConcurrencyLimiter.java +++ b/src/main/java/fi/vm/sade/valinta/kooste/valintalaskenta/actor/ConcurrencyLimiter.java @@ -54,8 +54,8 @@ public ConcurrencyLimiter(int permits, String nimi, ExecutorService executor) { * @param newPermits uusi lupien määrä */ public void setMaxPermits(int newPermits) { - this.maxPermits = newPermits; int dPermits = newPermits - this.maxPermits; + this.maxPermits = newPermits; if (dPermits == 0) { return; }