[Modify] Polish it

This commit is contained in:
sta 2016-10-13 14:30:00 +09:00
parent 2b927a64c2
commit 359de8a4be

View File

@ -466,8 +466,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;
}
@ -475,6 +481,7 @@ namespace WebSocketSharp.Server
_realm = value;
}
}
}
/// <summary>
/// Gets or sets a value indicating whether the server is allowed to be bound to