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