From a8a342097e3cef18bfeeb2e0a33c51d63dde5634 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 21 May 2016 16:38:07 +0900 Subject: [PATCH] [Fix] Catch it Fix for issue #232 and #261. --- websocket-sharp/Net/EndPointListener.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/websocket-sharp/Net/EndPointListener.cs b/websocket-sharp/Net/EndPointListener.cs index 99040e19..7d6b5193 100644 --- a/websocket-sharp/Net/EndPointListener.cs +++ b/websocket-sharp/Net/EndPointListener.cs @@ -244,6 +244,9 @@ namespace WebSocketSharp.Net try { sock = lsnr._socket.EndAccept (asyncResult); } + catch (SocketException) { + // TODO: Should log the error code when this class has a logging. + } catch (ObjectDisposedException) { return; }