mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Use decrementAndGet instead of getAndDecrement
This commit is contained in:
parent
ccfda5b043
commit
5f47ed20d8
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ public abstract class BisqExecutable implements GracefulShutDownHandler, BisqSet
|
||||||
hosts.forEach(e -> {
|
hosts.forEach(e -> {
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
e.readPersisted();
|
e.readPersisted();
|
||||||
remaining.getAndDecrement();
|
remaining.decrementAndGet();
|
||||||
if (remaining.get() == 0) {
|
if (remaining.get() == 0) {
|
||||||
UserThread.execute(completeHandler);
|
UserThread.execute(completeHandler);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue