[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 {
var msg = _state.CheckIfAvailable (true, false, false);
if (msg != null) {
string msg;
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);
return;
}
@ -510,6 +516,7 @@ namespace WebSocketSharp.Server
_reuseAddress = value;
}
}
}
/// <summary>
/// Gets or sets the SSL configuration used to authenticate the server and