[Modify] Replace it

This commit is contained in:
sta 2017-06-06 15:27:14 +09:00
parent de8e9a7382
commit a32815cfdf

View File

@ -594,15 +594,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.UserCredentialsFinder = value;
}
}
}
/// <summary>
/// Gets or sets the wait time for the response to the WebSocket Ping or Close.