fix offer publishing with mutable list
This commit is contained in:
parent
08b0b36436
commit
1c92d96651
1 changed files with 2 additions and 1 deletions
|
@ -2064,10 +2064,11 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
|||
stopPeriodicRefreshOffersTimer();
|
||||
|
||||
ThreadUtils.execute(() -> {
|
||||
processListForRepublishOffers(getOpenOffers());
|
||||
processListForRepublishOffers(new ArrayList<>(getOpenOffers())); // list will be modified
|
||||
}, THREAD_ID);
|
||||
}
|
||||
|
||||
// modifies the given list
|
||||
private void processListForRepublishOffers(List<OpenOffer> list) {
|
||||
if (list.isEmpty()) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue