fix init trade progress by synchronizing on notifier

This commit is contained in:
woodser 2025-09-15 03:29:47 -04:00 committed by woodser
parent 777cbfdc0c
commit 6bc74d2ee8

View file

@ -1406,6 +1406,8 @@ public class TradeManager implements PersistedDataHost, DecryptedDirectMessageLi
// TODO Remove once tradableList is refactored to a final field
// (part of the persistence refactor PR)
private void onTradesChanged() {
this.numPendingTrades.set(getObservableList().size());
synchronized (numPendingTrades) {
numPendingTrades.set(getObservableList().size());
}
}
}