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