import multisig hex off main thread on payment sent message

This commit is contained in:
woodser 2024-04-21 15:20:46 -04:00
parent e4b80ef14b
commit 3a66c9cd24

View file

@ -61,12 +61,14 @@ public class ProcessPaymentSentMessage extends TradeTask {
if (trade.isSeller()) trade.decryptPeerPaymentAccountPayload(message.getPaymentAccountKey()); if (trade.isSeller()) trade.decryptPeerPaymentAccountPayload(message.getPaymentAccountKey());
trade.requestPersistence(); trade.requestPersistence();
// try to import multisig hex (retry later) // try to import multisig hex off main thread (retry later)
new Thread(() -> {
try { try {
trade.importMultisigHex(); trade.importMultisigHex();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
}).start();
// update state // update state
trade.advanceState(Trade.State.BUYER_SENT_PAYMENT_SENT_MSG); trade.advanceState(Trade.State.BUYER_SENT_PAYMENT_SENT_MSG);