We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 620cc90 commit b45e80cCopy full SHA for b45e80c
src/com/codebutler/android_websockets/HybiParser.java
@@ -149,7 +149,7 @@ private void parseOpcode(byte data) throws ProtocolError {
149
throw new ProtocolError("Bad opcode");
150
}
151
152
- if (FRAGMENTED_OPCODES.contains(mOpcode) && !mFinal) {
+ if (!FRAGMENTED_OPCODES.contains(mOpcode) && !mFinal) {
153
throw new ProtocolError("Expected non-final packet");
154
155
@@ -413,4 +413,4 @@ public byte[] readBytes(int length) throws IOException {
413
return buffer;
414
415
416
-}
+}
0 commit comments