[Modify] Replace it
This commit is contained in:
parent
f720d839d5
commit
53ac2f5f45
@ -483,13 +483,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;
|
||||
}
|
||||
|
||||
_listener.ReuseAddress = value;
|
||||
lock (_sync) {
|
||||
if (!canSet (out msg)) {
|
||||
_log.Warn (msg);
|
||||
return;
|
||||
}
|
||||
|
||||
_listener.ReuseAddress = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user