[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 {
var msg = _state.CheckIfAvailable (true, false, false);
if (msg != null) {
_log.Error (msg);
string msg;
if (!canSet (out msg)) {
_log.Warn (msg);
return;
}
lock (_sync) {
if (!canSet (out msg)) {
_log.Warn (msg);
return;
}
_listener.AuthenticationSchemes = value;
}
}
}
/// <summary>
/// Gets a value indicating whether the server has started.