synchronize price requests

This commit is contained in:
woodser 2022-10-01 12:21:42 -04:00
parent dc9c04759f
commit 5bd05af890

View File

@ -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<>());
}