From 8f0cdb0bb7738460f7ba9a16686be92e4a534d16 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 18 Oct 2020 16:13:22 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/EndPointListener.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/EndPointListener.cs b/websocket-sharp/Net/EndPointListener.cs index a3094b3c..8e1bb522 100644 --- a/websocket-sharp/Net/EndPointListener.cs +++ b/websocket-sharp/Net/EndPointListener.cs @@ -243,11 +243,12 @@ namespace WebSocketSharp.Net var lsnr = (EndPointListener) asyncResult.AsyncState; Socket sock = null; + try { sock = lsnr._socket.EndAccept (asyncResult); } catch (SocketException) { - // TODO: Should log the error code when this class has a logging. + // TODO: Logging. } catch (ObjectDisposedException) { return;