mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
refresh offer TTL only if available
This commit is contained in:
parent
c193385475
commit
3c8c0034d0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue