From 5bd05af890688a6f1ab142d02f2841343c319899 Mon Sep 17 00:00:00 2001 From: woodser Date: Sat, 1 Oct 2022 12:21:42 -0400 Subject: [PATCH] synchronize price requests --- core/src/main/java/bisq/core/provider/price/PriceProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/provider/price/PriceProvider.java b/core/src/main/java/bisq/core/provider/price/PriceProvider.java index 199849f5..552b5daa 100644 --- a/core/src/main/java/bisq/core/provider/price/PriceProvider.java +++ b/core/src/main/java/bisq/core/provider/price/PriceProvider.java @@ -49,7 +49,7 @@ public class PriceProvider extends HttpClientProvider { super(httpClient, baseUrl, false); } - public Tuple2, Map> getAll() throws IOException { + public synchronized Tuple2, Map> getAll() throws IOException { if (shutDownRequested) { return new Tuple2<>(new HashMap<>(), new HashMap<>()); }