handle trade events during initialization
This commit is contained in:
parent
b18e9ad4bf
commit
74cd910705
@ -605,7 +605,6 @@ public abstract class Trade implements Tradable, Model {
|
|||||||
|
|
||||||
// handle trade state events
|
// handle trade state events
|
||||||
tradePhaseSubscription = EasyBind.subscribe(phaseProperty, newValue -> {
|
tradePhaseSubscription = EasyBind.subscribe(phaseProperty, newValue -> {
|
||||||
if (!isInitialized) return;
|
|
||||||
if (isDepositsPublished() && !isPayoutUnlocked()) updateWalletRefreshPeriod();
|
if (isDepositsPublished() && !isPayoutUnlocked()) updateWalletRefreshPeriod();
|
||||||
if (isCompleted()) {
|
if (isCompleted()) {
|
||||||
UserThread.execute(() -> {
|
UserThread.execute(() -> {
|
||||||
@ -619,7 +618,6 @@ public abstract class Trade implements Tradable, Model {
|
|||||||
|
|
||||||
// handle payout state events
|
// handle payout state events
|
||||||
payoutStateSubscription = EasyBind.subscribe(payoutStateProperty, newValue -> {
|
payoutStateSubscription = EasyBind.subscribe(payoutStateProperty, newValue -> {
|
||||||
if (!isInitialized) return;
|
|
||||||
if (isPayoutPublished()) updateWalletRefreshPeriod();
|
if (isPayoutPublished()) updateWalletRefreshPeriod();
|
||||||
|
|
||||||
// cleanup when payout published
|
// cleanup when payout published
|
||||||
|
Loading…
Reference in New Issue
Block a user