mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-17 19:54:35 -05:00
save wallet on same thread to avoid disconnect on awake from standby
This commit is contained in:
parent
39b8afa528
commit
12b6585779
@ -133,7 +133,7 @@ public class MakerSendSignOfferRequest extends Task<PlaceOfferModel> {
|
||||
// if unavailable, try alternative arbitrator
|
||||
@Override
|
||||
public void onFault(String errorMessage) {
|
||||
log.warn("Arbitrator unavailable: {}", errorMessage);
|
||||
log.warn("Arbitrator {} unavailable: {}", arbitratorNodeAddress, errorMessage);
|
||||
excludedArbitrators.add(arbitratorNodeAddress);
|
||||
Arbitrator altArbitrator = DisputeAgentSelection.getRandomArbitrator(model.getArbitratorManager(), excludedArbitrators);
|
||||
if (altArbitrator == null) {
|
||||
|
@ -67,7 +67,7 @@ public class ProcessDepositsConfirmedMessage extends TradeTask {
|
||||
trade.importMultisigHex();
|
||||
|
||||
// save wallet off thread
|
||||
new Thread(() -> trade.saveWallet()).start();
|
||||
trade.saveWallet();
|
||||
|
||||
// persist and complete
|
||||
processModel.getTradeManager().requestPersistence();
|
||||
|
@ -64,8 +64,8 @@ public class ProcessPaymentSentMessage extends TradeTask {
|
||||
// import multisig hex
|
||||
trade.importMultisigHex();
|
||||
|
||||
// save wallet off thread
|
||||
new Thread(() -> trade.saveWallet()).start();
|
||||
// save wallet
|
||||
trade.saveWallet();
|
||||
|
||||
// update state
|
||||
trade.advanceState(Trade.State.BUYER_SENT_PAYMENT_SENT_MSG);
|
||||
|
Loading…
Reference in New Issue
Block a user