reset address entries off thread on close take offer

This commit is contained in:
woodser 2024-05-23 20:23:33 -04:00
parent 64081b684c
commit b63227e8db

View File

@ -18,6 +18,8 @@
package haveno.desktop.main.offer.takeoffer;
import com.google.inject.Inject;
import haveno.common.ThreadUtils;
import haveno.common.handlers.ErrorMessageHandler;
import haveno.core.account.witness.AccountAgeWitnessService;
import haveno.core.filter.FilterManager;
@ -221,7 +223,8 @@ class TakeOfferDataModel extends OfferDataModel {
offerBook.removeOffer(checkNotNull(offer));
}
xmrWalletService.resetAddressEntriesForOpenOffer(offer.getId());
// reset address entries off thread
ThreadUtils.submitToPool(() -> xmrWalletService.resetAddressEntriesForOpenOffer(offer.getId()));
}