[Modify] Do not throw

This commit is contained in:
sta 2019-05-25 20:28:15 +09:00
parent 157cb4a3bc
commit 7e7ae7b0a4

View File

@ -720,10 +720,8 @@ namespace WebSocketSharp.Net
}
internal set {
if (value < 0 || value > 1) {
var msg = "It is not allowed.";
throw new ArgumentOutOfRangeException ("value", msg);
}
if (value < 0 || value > 1)
return;
_version = value;
}