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 e23ca31 commit 9625edbCopy full SHA for 9625edb
src/main/java/com/qcloud/cos/http/TimeOutCosHttpClient.java
@@ -34,9 +34,9 @@ public void shutdown() {
34
threadPool.shutdown();
35
36
try {
37
- int shutdown_timeout = clientConfig.getShutdownTimeout();
38
- if (!threadPool.awaitTermination(shutdown_timeout, TimeUnit.MILLISECONDS)) {
39
- log.warn("The threadPool has not shutdown successfully during the last " + shutdown_timeout/1000 + " seconds");
+ int shutdownTimeout = clientConfig.getShutdownTimeout();
+ if (!threadPool.awaitTermination(shutdownTimeout, TimeUnit.MILLISECONDS)) {
+ log.warn("The threadPool has not shutdown successfully during the last " + shutdownTimeout/1000 + " seconds");
40
threadPool.shutdownNow();
41
}
42
} catch (InterruptedException e) {
0 commit comments