Skip to content

Commit 5708fbe

Browse files
committed
Fix this craziness about singleton field
1 parent dd8a784 commit 5708fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2264,7 +2264,6 @@ private final class WebSocketProtocol implements Protocol {
22642264
private static final byte OPCODE_TEXT = 0x1;
22652265
private static final byte OPCODE_BINARY = 0x2;
22662266
private static final byte OPCODE_UNKNOWN = -1;
2267-
protected byte pendingOpcode = OPCODE_UNKNOWN;
22682267

22692268
// We don't need to synchronize as replacing the "ws-decoder" will process using the same thread.
22702269
private void invokeOnSucces(ChannelHandlerContext ctx, WebSocketUpgradeHandler h) {
@@ -2351,6 +2350,7 @@ public void handle(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
23512350

23522351
final WebSocketFrame frame = (WebSocketFrame) e.getMessage();
23532352

2353+
byte pendingOpcode = OPCODE_UNKNOWN;
23542354
if (frame instanceof TextWebSocketFrame) {
23552355
pendingOpcode = OPCODE_TEXT;
23562356
} else if (frame instanceof BinaryWebSocketFrame) {

0 commit comments

Comments
 (0)