mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-16 19:09:34 -04:00
Add listeners if pricefeed is not available
This commit is contained in:
parent
3b94eda701
commit
b97506cf51
11 changed files with 150 additions and 42 deletions
|
@ -107,6 +107,7 @@ public class PriceFeed {
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Setter
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -277,7 +277,8 @@ public final class Offer implements StoragePayload, RequiresOwnerIsOnlinePayload
|
|||
resultHandler.handleResult();
|
||||
},
|
||||
(errorMessage) -> {
|
||||
availabilityProtocol.cancel();
|
||||
if (availabilityProtocol != null)
|
||||
availabilityProtocol.cancel();
|
||||
log.error(errorMessage);
|
||||
});
|
||||
availabilityProtocol.sendOfferAvailabilityRequest();
|
||||
|
@ -370,8 +371,8 @@ public final class Offer implements StoragePayload, RequiresOwnerIsOnlinePayload
|
|||
return null;
|
||||
}
|
||||
} else {
|
||||
log.warn("We don't have a market price./n" +
|
||||
"That case could only happen if you don't get a price feed.");
|
||||
log.warn("We don't have a market price.\n" +
|
||||
"That case could only happen if you don't have a price feed.");
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue