Skip to content

Commit 7c8b4c3

Browse files
committed
doh.. made isCancelled.set(false); when meant to be true.
1 parent 3e19b9c commit 7c8b4c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyResponseFuture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public V get(long l, TimeUnit tu) throws InterruptedException, TimeoutException,
211211
}
212212

213213
if (expired) {
214-
isCancelled.set(false);
214+
isCancelled.set(true);
215215
try {
216216
channel.getPipeline().getContext(NettyAsyncHttpProvider.class).setAttachment(new NettyAsyncHttpProvider.DiscardEvent());
217217
channel.close();

0 commit comments

Comments
 (0)