[Modify] Replace it

This commit is contained in:
sta 2017-06-05 17:30:33 +09:00
parent 2077be2c47
commit 9098020bfa

View File

@ -524,13 +524,20 @@ 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;
}
_rootPath = value;
lock (_sync) {
if (!canSet (out msg)) {
_log.Warn (msg);
return;
}
_rootPath = value;
}
}
}