mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04: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);
|
||||
}
|
||||
|
||||
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) {
|
||||
return new Tuple2<>(new HashMap<>(), new HashMap<>());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user