[Modify] Polish it
This commit is contained in:
parent
7ac427d7a6
commit
822b9eb6f4
@ -768,8 +768,10 @@ namespace WebSocketSharp.Server
|
|||||||
var bytes = stream.ReadBytes (length);
|
var bytes = stream.ReadBytes (length);
|
||||||
|
|
||||||
var len = bytes.Length;
|
var len = bytes.Length;
|
||||||
if (len == 0)
|
if (len == 0) {
|
||||||
throw new ArgumentException ("No data could be read from it.", "stream");
|
var msg = "No data could be read from it.";
|
||||||
|
throw new ArgumentException (msg, "stream");
|
||||||
|
}
|
||||||
|
|
||||||
if (len < length) {
|
if (len < length) {
|
||||||
_logger.Warn (
|
_logger.Warn (
|
||||||
|
Loading…
Reference in New Issue
Block a user