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 f9f9cf4 commit 88ccbf4Copy full SHA for 88ccbf4
src/main/java/com/ning/http/client/AsyncHttpClient.java
@@ -375,21 +375,17 @@ public void close() {
375
*/
376
public void closeAsynchronously() {
377
final ExecutorService e = Executors.newSingleThreadExecutor();
378
- try {
379
- e.submit(new Runnable() {
380
- public void run() {
381
382
- close();
383
- } catch (Throwable t) {
384
- logger.warn("", t);
385
- } finally {
386
- e.shutdown();
387
- }
+ e.submit(new Runnable() {
+ public void run() {
+ try {
+ close();
+ } catch (Throwable t) {
+ logger.warn("", t);
+ } finally {
+ e.shutdown();
388
}
389
- });
390
391
392
+ }
+ });
393
394
395
@Override
0 commit comments