From c9adbebe7f1d4a58c7dad37f47413e5f3251c90a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 26 Oct 2015 15:26:38 +0530 Subject: [PATCH] oops again :) --- src/calibre/srv/web_socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/web_socket.py b/src/calibre/srv/web_socket.py index 7314e31a81..d37ccba535 100644 --- a/src/calibre/srv/web_socket.py +++ b/src/calibre/srv/web_socket.py @@ -320,7 +320,7 @@ class WebSocketConnection(HTTPConnection): self.websocket_close(PROTOCOL_ERROR, 'Continuation frame without any message to continue') return self.current_recv_opcode = opcode - elif opcode != CONTINUATION: + elif frame_starting and opcode != CONTINUATION: self.log.error('Client sent continuation frame with non-zero opcode') self.websocket_close(PROTOCOL_ERROR, 'Continuation frame with non-zero opcode') return