File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/main/java/com/ning/http/client/providers/netty Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ enum STATE {
79
79
private final long start = millisTime ();
80
80
private final NettyAsyncHttpProvider asyncHttpProvider ;
81
81
private final AtomicReference <STATE > state = new AtomicReference <STATE >(STATE .NEW );
82
- private final AtomicBoolean contentProcessed = new AtomicBoolean (false );
83
82
private Channel channel ;
84
83
private boolean reuseChannel = false ;
85
84
private final AtomicInteger currentRetry = new AtomicInteger (0 );
@@ -269,7 +268,7 @@ private V getContent() throws ExecutionException {
269
268
V update = content .get ();
270
269
// No more retry
271
270
currentRetry .set (maxRetry );
272
- if (exEx .get () == null && ! contentProcessed . getAndSet ( true ) ) {
271
+ if (exEx .get () == null && update == null ) {
273
272
try {
274
273
update = asyncHandler .onCompleted ();
275
274
} catch (Throwable ex ) {
You can’t perform that action at this time.
0 commit comments