Skip to content

Commit a321891

Browse files
joedjslandelle
authored andcommitted
Set NettyResponseFuture#isDone before invoking abort callbacks, close AsyncHttpClient#1368 (AsyncHttpClient#1370)
1 parent 0deb251 commit a321891

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/main/java/org/asynchttpclient/netty/NettyResponseFuture.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,11 @@ public final void done() {
235235

236236
public final void abort(final Throwable t) {
237237

238-
future.completeExceptionally(t);
239-
240238
if (terminateAndExit())
241239
return;
242240

241+
future.completeExceptionally(t);
242+
243243
if (onThrowableCalledField.compareAndSet(this, 0, 1)) {
244244
try {
245245
asyncHandler.onThrowable(t);

0 commit comments

Comments
 (0)