From 32db15c27a9912f302546d6ad28eecc1e86aa864 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 29 Sep 2017 16:14:05 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/WebSocket.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index e86b27d2..f510f89a 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -235,8 +235,7 @@ namespace WebSocketSharp throw new ArgumentException (msg, "url"); if (protocols != null && protocols.Length > 0) { - msg = protocols.CheckIfValidProtocols (); - if (msg != null) + if (!checkProtocols (protocols, out msg)) throw new ArgumentException (msg, "protocols"); _protocols = protocols;