[Modify] Replace it

This commit is contained in:
sta 2017-06-05 15:04:51 +09:00
parent 8b490d4364
commit 86e14309c3

View File

@ -298,15 +298,22 @@ namespace WebSocketSharp.Server
} }
set { set {
var msg = _state.CheckIfAvailable (true, false, false); string msg;
if (msg != null) { if (!canSet (out msg)) {
_log.Error (msg); _log.Warn (msg);
return;
}
lock (_sync) {
if (!canSet (out msg)) {
_log.Warn (msg);
return; return;
} }
_listener.AuthenticationSchemes = value; _listener.AuthenticationSchemes = value;
} }
} }
}
/// <summary> /// <summary>
/// Gets a value indicating whether the server has started. /// Gets a value indicating whether the server has started.