mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
handle trade events during initialization
This commit is contained in:
parent
b18e9ad4bf
commit
74cd910705
1 changed files with 0 additions and 2 deletions
|
@ -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 a new issue