Use decrementAndGet instead of getAndDecrement

This commit is contained in:
chimp1984 2020-10-01 22:14:01 -05:00
parent ccfda5b043
commit 5f47ed20d8
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3

View file

@ -171,7 +171,7 @@ public abstract class BisqExecutable implements GracefulShutDownHandler, BisqSet
hosts.forEach(e -> {
new Thread(() -> {
e.readPersisted();
remaining.getAndDecrement();
remaining.decrementAndGet();
if (remaining.get() == 0) {
UserThread.execute(completeHandler);
}