Remove volatile keyword as it is not needed

This commit is contained in:
Norman Maurer 2012-04-29 13:43:52 +02:00
parent 5219a59597
commit ca19df80f5

View File

@ -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();