[Modify] Throw exception

This commit is contained in:
sta 2017-02-19 16:47:20 +09:00
parent a0e56bcb38
commit 8a4e7d33e0

View File

@ -640,10 +640,8 @@ namespace WebSocketSharp.Server
set {
string msg;
if (!value.CheckWaitTime (out msg)) {
_logger.Error (msg);
return;
}
if (!value.CheckWaitTime (out msg))
throw new ArgumentException (msg, "value");
if (!canSet (out msg)) {
_logger.Warn (msg);