mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
synchronize on trade during initialization
This commit is contained in:
parent
a1829ee9f3
commit
9f3b0c96c4
@ -573,6 +573,7 @@ public abstract class Trade implements Tradable, Model {
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
public void initialize(ProcessModelServiceProvider serviceProvider) {
|
||||
synchronized (this) {
|
||||
if (isInitialized) throw new IllegalStateException(getClass().getSimpleName() + " " + getId() + " is already initialized");
|
||||
|
||||
// set arbitrator pub key ring once known
|
||||
@ -678,6 +679,7 @@ public abstract class Trade implements Tradable, Model {
|
||||
if (xmrWalletService.getConnectionsService().getConnection() == null || Boolean.FALSE.equals(xmrWalletService.getConnectionsService().isConnected())) return;
|
||||
updateSyncing();
|
||||
}
|
||||
}
|
||||
|
||||
public void requestPersistence() {
|
||||
processModel.getTradeManager().requestPersistence();
|
||||
|
Loading…
Reference in New Issue
Block a user