fix deadlock by setting offer error message property on calling thread

This commit is contained in:
woodser 2025-04-13 15:17:13 -04:00 committed by GitHub
parent f1c09161f4
commit a30b41de4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,6 @@
package haveno.core.offer;
import haveno.common.ThreadUtils;
import haveno.common.UserThread;
import haveno.common.crypto.KeyRing;
import haveno.common.crypto.PubKeyRing;
import haveno.common.handlers.ErrorMessageHandler;
@ -281,7 +280,7 @@ public class Offer implements NetworkPayload, PersistablePayload {
}
public void setErrorMessage(String errorMessage) {
UserThread.await(() -> errorMessageProperty.set(errorMessage));
errorMessageProperty.set(errorMessage);
}