From 2ba4ff2b8eaae29d0728b3f35cbb36cbb64f15a5 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 9 Oct 2020 22:10:42 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/EndPointManager.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/websocket-sharp/Net/EndPointManager.cs b/websocket-sharp/Net/EndPointManager.cs index 166f1164..37f34f9c 100644 --- a/websocket-sharp/Net/EndPointManager.cs +++ b/websocket-sharp/Net/EndPointManager.cs @@ -214,10 +214,9 @@ namespace WebSocketSharp.Net if (!_endpoints.TryGetValue (endpoint, out lsnr)) return false; - _endpoints.Remove (endpoint); lsnr.Close (); - return true; + return _endpoints.Remove (endpoint); } }