[Modify] Polish it
This commit is contained in:
parent
a520733ba2
commit
b5af31a756
@ -1753,10 +1753,7 @@ namespace WebSocketSharp
|
|||||||
if (value.Length == 0)
|
if (value.Length == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!_protocolsRequested || !_protocols.Contains (p => p == value))
|
return _protocolsRequested && _protocols.Contains (p => p == value);
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// As server
|
// As server
|
||||||
|
Loading…
Reference in New Issue
Block a user