diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 195fc7e1..8398731c 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -945,8 +945,7 @@ namespace WebSocketSharp { message = null; - Func cond = protocol => protocol == null - || protocol.Length == 0 + Func cond = protocol => protocol.IsNullOrEmpty () || !protocol.IsToken (); if (protocols.Contains (cond)) {