File tree 1 file changed +9
-2
lines changed
core/src/main/java/haveno/core/provider/price
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -451,9 +451,16 @@ private boolean applyPriceToConsumer() {
451
451
}
452
452
453
453
private void requestAllPrices (PriceProvider provider , Runnable resultHandler , FaultHandler faultHandler ) {
454
+
455
+ // ignore if we have pending request to same provider
454
456
if (httpClient .hasPendingRequest ()) {
455
- log .warn ("We have a pending request open. We ignore that request. httpClient {}" , httpClient );
456
- return ;
457
+ if (httpClient .getBaseUrl ().equals (provider .getBaseUrl ())) {
458
+ log .warn ("We have a pending request open. We ignore that request. httpClient {}" , httpClient );
459
+ return ;
460
+ } else {
461
+ log .warn ("Canceling price request and resending to provider {}" , provider .getBaseUrl ());
462
+ httpClient .cancelPendingRequest ();
463
+ }
457
464
}
458
465
459
466
priceRequest = new PriceRequest ();
You can’t perform that action at this time.
0 commit comments