Skip to content

Commit 9625edb

Browse files
author
jeffreykzli
committed
update TimeOutCosHttpClient
1 parent e23ca31 commit 9625edb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/qcloud/cos/http/TimeOutCosHttpClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ public void shutdown() {
3434
threadPool.shutdown();
3535

3636
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");
37+
int shutdownTimeout = clientConfig.getShutdownTimeout();
38+
if (!threadPool.awaitTermination(shutdownTimeout, TimeUnit.MILLISECONDS)) {
39+
log.warn("The threadPool has not shutdown successfully during the last " + shutdownTimeout/1000 + " seconds");
4040
threadPool.shutdownNow();
4141
}
4242
} catch (InterruptedException e) {

0 commit comments

Comments
 (0)