File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
http-clients/aws-crt-client/src/main/java/software/amazon/awssdk/http/crt Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 45
45
import software .amazon .awssdk .http .async .SdkAsyncHttpClient ;
46
46
import software .amazon .awssdk .http .crt .internal .AwsCrtAsyncHttpStreamAdapter ;
47
47
import software .amazon .awssdk .utils .AttributeMap ;
48
+ import software .amazon .awssdk .utils .IoUtils ;
48
49
import software .amazon .awssdk .utils .Logger ;
49
50
import software .amazon .awssdk .utils .Validate ;
50
51
import software .amazon .awssdk .utils .http .SdkHttpUtils ;
@@ -250,12 +251,12 @@ public CompletableFuture<Void> execute(AsyncExecuteRequest asyncRequest) {
250
251
public void close () {
251
252
isClosed .set (true );
252
253
for (HttpConnectionPoolManager connPool : connectionPools .values ()) {
253
- connPool . close ( );
254
+ IoUtils . closeQuietly ( connPool , log . logger () );
254
255
}
255
256
256
257
while (ownedSubResources .size () > 0 ) {
257
258
CrtResource r = ownedSubResources .pop ();
258
- r . close ( );
259
+ IoUtils . closeQuietly ( r , log . logger () );
259
260
}
260
261
}
261
262
You can’t perform that action at this time.
0 commit comments