handle trade events during initialization

This commit is contained in:
woodser 2023-03-06 13:29:26 -05:00
parent b18e9ad4bf
commit 74cd910705

View file

@ -605,7 +605,6 @@ public abstract class Trade implements Tradable, Model {
// handle trade state events
tradePhaseSubscription = EasyBind.subscribe(phaseProperty, newValue -> {
if (!isInitialized) return;
if (isDepositsPublished() && !isPayoutUnlocked()) updateWalletRefreshPeriod();
if (isCompleted()) {
UserThread.execute(() -> {
@ -619,7 +618,6 @@ public abstract class Trade implements Tradable, Model {
// handle payout state events
payoutStateSubscription = EasyBind.subscribe(payoutStateProperty, newValue -> {
if (!isInitialized) return;
if (isPayoutPublished()) updateWalletRefreshPeriod();
// cleanup when payout published