Skip to content

Commit

Permalink
OK-611 Korjattu bugi limitterien säätämisessä
Browse files Browse the repository at this point in the history
  • Loading branch information
jkorri committed Dec 3, 2024
1 parent 2180021 commit a070c4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a070c4f

Please sign in to comment.