Add retry after republish offer failure

This commit is contained in:
Manfred Karrer 2016-02-20 14:27:03 +01:00
parent cec1e99e98
commit aab64c6f84

View File

@ -225,6 +225,9 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
errorMessage -> {
//TODO handle with retry
log.error("Add offer to P2P network failed. " + errorMessage);
stopRepublishOffersTimer();
republishOffersTimer = UserThread.runAfter(OpenOfferManager.this::republishOffers,
RETRY_DELAY_AFTER_ALL_CON_LOST_SEC);
});
openOffer.setStorage(openOffersStorage);
}