Skip to content

Commit a30b41d

Browse files
authored
fix deadlock by setting offer error message property on calling thread
1 parent f1c0916 commit a30b41d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/java/haveno/core/offer/Offer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package haveno.core.offer;
1919

2020
import haveno.common.ThreadUtils;
21-
import haveno.common.UserThread;
2221
import haveno.common.crypto.KeyRing;
2322
import haveno.common.crypto.PubKeyRing;
2423
import haveno.common.handlers.ErrorMessageHandler;
@@ -281,7 +280,7 @@ public ObjectProperty<Offer.State> stateProperty() {
281280
}
282281

283282
public void setErrorMessage(String errorMessage) {
284-
UserThread.await(() -> errorMessageProperty.set(errorMessage));
283+
errorMessageProperty.set(errorMessage);
285284
}
286285

287286

0 commit comments

Comments
 (0)