[Modify] Polish it

This commit is contained in:
sta 2016-10-13 14:54:28 +09:00
parent f63d4a41a1
commit 44bf2f6949

View File

@ -501,8 +501,14 @@ namespace WebSocketSharp.Server
} }
set { set {
var msg = _state.CheckIfAvailable (true, false, false); string msg;
if (msg != null) { if (!checkIfAvailable (true, false, false, true, out msg)) {
_logger.Error (msg);
return;
}
lock (_sync) {
if (!checkIfAvailable (true, false, false, true, out msg)) {
_logger.Error (msg); _logger.Error (msg);
return; return;
} }
@ -510,6 +516,7 @@ namespace WebSocketSharp.Server
_reuseAddress = value; _reuseAddress = value;
} }
} }
}
/// <summary> /// <summary>
/// Gets or sets the SSL configuration used to authenticate the server and /// Gets or sets the SSL configuration used to authenticate the server and