From 47e859f57f70506a68fd5049950fbad0a01464b2 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 25 Feb 2015 17:24:10 +0900 Subject: [PATCH] Modified a few for EndPointListener.cs --- websocket-sharp/Net/EndPointListener.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/EndPointListener.cs b/websocket-sharp/Net/EndPointListener.cs index 17f7a5e4..b3339661 100644 --- a/websocket-sharp/Net/EndPointListener.cs +++ b/websocket-sharp/Net/EndPointListener.cs @@ -170,10 +170,12 @@ namespace WebSocketSharp.Net if (_prefixes.Count > 0) return; - if (_unhandled != null && _unhandled.Count > 0) + var list = _unhandled; + if (list != null && list.Count > 0) return; - if (_all != null && _all.Count > 0) + list = _all; + if (list != null && list.Count > 0) return; EndPointManager.RemoveEndPoint (this);