mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 10:22:18 +01:00
Add try/catch around offerBookListItems.clear();
This commit is contained in:
parent
d7f609a970
commit
c1ac65345d
@ -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…
Reference in New Issue
Block a user