mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 15:26:03 -04:00
fix deadlock by setting offer error message property on calling thread
This commit is contained in:
parent
f1c09161f4
commit
a30b41de4b
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user