Remove volatile keyword as it is not needed
This commit is contained in:
parent
5219a59597
commit
ca19df80f5
@ -31,8 +31,9 @@ public class HttpUploadClientHandler extends SimpleChannelUpstreamHandler {
|
|||||||
private static final InternalLogger logger =
|
private static final InternalLogger logger =
|
||||||
InternalLoggerFactory.getInstance(HttpUploadClientHandler.class);
|
InternalLoggerFactory.getInstance(HttpUploadClientHandler.class);
|
||||||
|
|
||||||
private volatile boolean readingChunks;
|
private boolean readingChunks;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
|
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
|
||||||
if (!readingChunks) {
|
if (!readingChunks) {
|
||||||
HttpResponse response = (HttpResponse) e.getMessage();
|
HttpResponse response = (HttpResponse) e.getMessage();
|
||||||
@ -70,6 +71,7 @@ public class HttpUploadClientHandler extends SimpleChannelUpstreamHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
|
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
e.getCause().printStackTrace();
|
e.getCause().printStackTrace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user