mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-13 20:12:18 -04:00
Add try/catch around offerBookListItems.clear();
This commit is contained in:
parent
d7f609a970
commit
c1ac65345d
1 changed files with 6 additions and 1 deletions
|
@ -91,7 +91,12 @@ public class OfferBook {
|
|||
List<Offer> offers = offerBookService.getOffers();
|
||||
CopyOnWriteArraySet<OfferBookListItem> list = new CopyOnWriteArraySet<>();
|
||||
offers.stream().forEach(e -> list.add(new OfferBookListItem(e)));
|
||||
offerBookListItems.clear();
|
||||
try {
|
||||
offerBookListItems.clear();
|
||||
} catch (Throwable t) {
|
||||
log.error(" offerBookListItems.clear failed " + t.getMessage());
|
||||
}
|
||||
|
||||
offerBookListItems.addAll(list);
|
||||
|
||||
log.debug("offerBookListItems " + offerBookListItems.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue