We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aabb3c commit c0e1bfdCopy full SHA for c0e1bfd
src/main/java/com/litesoftwares/coingecko/CoinGeckoApi.java
@@ -62,8 +62,10 @@ public <T> T executeSync(Call<T> call) {
62
}
63
64
public void shutdown() {
65
- okHttpClient.dispatcher().executorService().shutdown();
66
- okHttpClient.connectionPool().evictAll();
+ if (okHttpClient != null) {
+ okHttpClient.dispatcher().executorService().shutdown();
67
+ okHttpClient.connectionPool().evictAll();
68
+ }
69
70
71
private CoinGeckoApiError getCoinGeckoApiError(Response<?> response) throws IOException{
0 commit comments