mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-23 04:29:22 +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);
|
final OpenOffer openOffer = openOffersList.get(i);
|
||||||
UserThread.runAfterRandomDelay(() -> {
|
UserThread.runAfterRandomDelay(() -> {
|
||||||
// we need to check if in the meantime the offer has been removed
|
// 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);
|
refreshOffer(openOffer);
|
||||||
}, minDelay, maxDelay, TimeUnit.MILLISECONDS);
|
}, minDelay, maxDelay, TimeUnit.MILLISECONDS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue