[Modify] Replace it
This commit is contained in:
parent
5c008aba14
commit
a2016d543a
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user