From 3c8c0034d004873fdcbea30a36ab1deab7a1bd85 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 9 Aug 2023 12:06:16 -0400 Subject: [PATCH] refresh offer TTL only if available --- core/src/main/java/haveno/core/offer/OpenOfferManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/haveno/core/offer/OpenOfferManager.java b/core/src/main/java/haveno/core/offer/OpenOfferManager.java index 768a7d9530..a17445ceaf 100644 --- a/core/src/main/java/haveno/core/offer/OpenOfferManager.java +++ b/core/src/main/java/haveno/core/offer/OpenOfferManager.java @@ -1650,7 +1650,7 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe final OpenOffer openOffer = openOffersList.get(i); UserThread.runAfterRandomDelay(() -> { // we need to check if in the meantime the offer has been removed - if (openOffers.contains(openOffer) && !openOffer.isDeactivated()) + if (openOffers.contains(openOffer) && openOffer.isAvailable()) refreshOffer(openOffer); }, minDelay, maxDelay, TimeUnit.MILLISECONDS); }