[Modify] Polish it
This commit is contained in:
parent
f63d4a41a1
commit
44bf2f6949
@ -501,8 +501,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;
|
||||
}
|
||||
@ -510,6 +516,7 @@ namespace WebSocketSharp.Server
|
||||
_reuseAddress = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the SSL configuration used to authenticate the server and
|
||||
|
Loading…
Reference in New Issue
Block a user