[Modify] Replace it

This commit is contained in:
sta 2016-01-10 15:39:39 +09:00
parent 5c008aba14
commit a2016d543a

View File

@ -1181,7 +1181,7 @@ namespace WebSocketSharp
? processPongFrame (frame) ? processPongFrame (frame)
: frame.IsClose : frame.IsClose
? processCloseFrame (frame) ? processCloseFrame (frame)
: processUnsupportedFrame (frame, CloseStatusCode.UnsupportedData, null); : processUnsupportedFrame (frame);
} }
// As server // As server
@ -1209,10 +1209,10 @@ namespace WebSocketSharp
} }
} }
private bool processUnsupportedFrame (WebSocketFrame frame, CloseStatusCode code, string reason) private bool processUnsupportedFrame (WebSocketFrame frame)
{ {
_logger.Debug ("An unsupported frame:" + frame.PrintToString (false)); _logger.Fatal ("An unsupported frame:" + frame.PrintToString (false));
processException (new WebSocketException (code, reason), null); fatal ("There is no way to handle it.", null);
return false; return false;
} }