mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-11-10 13:13:36 +01:00
synchronize price requests
This commit is contained in:
parent
dc9c04759f
commit
5bd05af890
@ -49,7 +49,7 @@ public class PriceProvider extends HttpClientProvider {
|
|||||||
super(httpClient, baseUrl, false);
|
super(httpClient, baseUrl, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Tuple2<Map<String, Long>, Map<String, MarketPrice>> getAll() throws IOException {
|
public synchronized Tuple2<Map<String, Long>, Map<String, MarketPrice>> getAll() throws IOException {
|
||||||
if (shutDownRequested) {
|
if (shutDownRequested) {
|
||||||
return new Tuple2<>(new HashMap<>(), new HashMap<>());
|
return new Tuple2<>(new HashMap<>(), new HashMap<>());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user