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 =
|
||||
InternalLoggerFactory.getInstance(HttpUploadClientHandler.class);
|
||||
|
||||
private volatile boolean readingChunks;
|
||||
private boolean readingChunks;
|
||||
|
||||
@Override
|
||||
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
|
||||
if (!readingChunks) {
|
||||
HttpResponse response = (HttpResponse) e.getMessage();
|
||||
@ -70,6 +71,7 @@ public class HttpUploadClientHandler extends SimpleChannelUpstreamHandler {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
|
||||
throws Exception {
|
||||
e.getCause().printStackTrace();
|
||||
|
Loading…
Reference in New Issue
Block a user