Skip to content

Commit b09ee04

Browse files
committed
Debug
1 parent af9ef5c commit b09ee04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/debug/server_cdp.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ def send **msg
344344

345345
def extract_data
346346
first_group = @sock.getbyte
347-
fin = first_group & 0b10000000 != 128
348-
raise 'Unsupported' if fin
349347
opcode = first_group & 0b00001111
350348
raise "Unsupported: #{opcode}" unless opcode == 1
349+
fin = first_group & 0b10000000 != 128
350+
raise 'Unsupported' if fin
351351

352352
second_group = @sock.getbyte
353353
mask = second_group & 0b10000000 == 128

0 commit comments

Comments
 (0)