Move stopPeriodicRefreshOffersTimer before processListForRepublishOffers

The periodicRefreshOffersTimer gets started at offer publishing.
Before the stopPeriodicRefreshOffersTimer got overwritten by the start in offer
publishing so it did not had any effect beside that we restarted it. Now we
process offer publishing without delay and a stop after the call would stop
the refresh timer.
This commit is contained in:
chimp1984 2020-12-22 21:08:42 -05:00
parent 83e620d462
commit c5d0fa789b
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -880,10 +880,10 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
return;
}
stopPeriodicRefreshOffersTimer();
List<OpenOffer> openOffersList = new ArrayList<>(openOffers.getList());
processListForRepublishOffers(openOffersList);
stopPeriodicRefreshOffersTimer();
}
private void processListForRepublishOffers(List<OpenOffer> list) {