[Modify] Replace it

This commit is contained in:
sta 2016-01-09 15:47:02 +09:00
parent f8f8189b4b
commit 5c008aba14

View File

@ -1168,7 +1168,7 @@ namespace WebSocketSharp
{ {
var msg = checkIfValidReceivedFrame (frame); var msg = checkIfValidReceivedFrame (frame);
if (msg != null) if (msg != null)
return processUnsupportedFrame (frame, CloseStatusCode.ProtocolError, msg); throw new WebSocketException (CloseStatusCode.ProtocolError, msg);
frame.Unmask (); frame.Unmask ();
return frame.IsFragment return frame.IsFragment