mirror of
https://github.com/boldsuck/haveno.git
synced 2025-01-05 15:49:23 +00:00
update only buyer's payment sent message state property on startup
This commit is contained in:
parent
bcb951ca40
commit
036ddef52c
1 changed files with 7 additions and 5 deletions
|
@ -694,12 +694,14 @@ public abstract class Trade implements Tradable, Model {
|
||||||
xmrWalletService.addWalletListener(idlePayoutSyncer);
|
xmrWalletService.addWalletListener(idlePayoutSyncer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: trader's payment sent message state property can become unsynced (after improper shut down?)
|
// TODO: buyer's payment sent message state property can become unsynced (after improper shut down?)
|
||||||
|
if (isBuyer()) {
|
||||||
MessageState expectedState = getPaymentSentMessageState();
|
MessageState expectedState = getPaymentSentMessageState();
|
||||||
if (!isArbitrator() && expectedState != null && expectedState != processModel.getPaymentSentMessageStateProperty().get()) {
|
if (expectedState != null && expectedState != processModel.getPaymentSentMessageStateProperty().get()) {
|
||||||
log.warn("Updating unexpected payment sent message state for {} {}, expected={}, actual={}", getClass().getSimpleName(), getId(), expectedState, processModel.getPaymentSentMessageStateProperty().get());
|
log.warn("Updating unexpected payment sent message state for {} {}, expected={}, actual={}", getClass().getSimpleName(), getId(), expectedState, processModel.getPaymentSentMessageStateProperty().get());
|
||||||
processModel.getPaymentSentMessageStateProperty().set(expectedState);
|
processModel.getPaymentSentMessageStateProperty().set(expectedState);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// trade is initialized
|
// trade is initialized
|
||||||
isInitialized = true;
|
isInitialized = true;
|
||||||
|
|
Loading…
Reference in a new issue