Skip to content

Commit 88ccbf4

Browse files
author
Stephane Landelle
committed
revert
1 parent f9f9cf4 commit 88ccbf4

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

src/main/java/com/ning/http/client/AsyncHttpClient.java

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -375,21 +375,17 @@ public void close() {
375375
*/
376376
public void closeAsynchronously() {
377377
final ExecutorService e = Executors.newSingleThreadExecutor();
378-
try {
379-
e.submit(new Runnable() {
380-
public void run() {
381-
try {
382-
close();
383-
} catch (Throwable t) {
384-
logger.warn("", t);
385-
} finally {
386-
e.shutdown();
387-
}
378+
e.submit(new Runnable() {
379+
public void run() {
380+
try {
381+
close();
382+
} catch (Throwable t) {
383+
logger.warn("", t);
384+
} finally {
385+
e.shutdown();
388386
}
389-
});
390-
} finally {
391-
e.shutdown();
392-
}
387+
}
388+
});
393389
}
394390

395391
@Override

0 commit comments

Comments
 (0)