Fixed - AsyncSemaphore counter field should be volatile. #2398

pull/2450/head
Nikita Koksharov 5 years ago
parent 7bb7e1066b
commit 8e74c0e9f6

@ -76,7 +76,7 @@ public class AsyncSemaphore {
}
private int counter;
private volatile int counter;
private final Set<Entry> listeners = new LinkedHashSet<Entry>();
public AsyncSemaphore(int permits) {

Loading…
Cancel
Save