From 3aab3f57b18c56da1a077d1cc78eb853942cc6b8 Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 28 Dec 2023 13:27:59 -0500 Subject: [PATCH] set offer state on UserThread --- core/src/main/java/haveno/core/offer/Offer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/haveno/core/offer/Offer.java b/core/src/main/java/haveno/core/offer/Offer.java index 5a450bb44b..d94bd0dc69 100644 --- a/core/src/main/java/haveno/core/offer/Offer.java +++ b/core/src/main/java/haveno/core/offer/Offer.java @@ -17,6 +17,7 @@ package haveno.core.offer; +import haveno.common.UserThread; import haveno.common.crypto.KeyRing; import haveno.common.crypto.PubKeyRing; import haveno.common.handlers.ErrorMessageHandler; @@ -261,7 +262,7 @@ public class Offer implements NetworkPayload, PersistablePayload { /////////////////////////////////////////////////////////////////////////////////////////// public void setState(Offer.State state) { - stateProperty().set(state); + UserThread.await(() -> stateProperty().set(state)); } public ObjectProperty stateProperty() { @@ -269,7 +270,7 @@ public class Offer implements NetworkPayload, PersistablePayload { } public void setErrorMessage(String errorMessage) { - this.errorMessageProperty.set(errorMessage); + UserThread.await(() -> errorMessageProperty.set(errorMessage)); }