[Modify] Replace it

This commit is contained in:
sta
2022-01-02 17:42:53 +09:00
parent 8ab45316d6
commit 0a23e1ee12

View File

@@ -591,13 +591,8 @@ namespace WebSocketSharp.Server
set { set {
lock (_sync) { lock (_sync) {
string msg; if (!canSet ())
if (!canSet (out msg)) {
_log.Warn (msg);
return; return;
}
_listener.ReuseAddress = value; _listener.ReuseAddress = value;
} }