diff options
Diffstat (limited to 'spark-common/src')
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java b/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java index fdced75..4dfbd20 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java +++ b/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java @@ -160,6 +160,11 @@ public class SparkPlatform { } SparkApi.unregister(); + + // shutdown okhttp + // see: https://github.com/square/okhttp/issues/4029 + OK_HTTP_CLIENT.dispatcher().executorService().shutdown(); + OK_HTTP_CLIENT.connectionPool().evictAll(); } public SparkPlugin getPlugin() { |