From 26163779ea59f948389d70e13c3748fb407fa78e Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 3 Jun 2016 16:19:43 +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 60168341..8cf7fee0 100644 --- a/websocket-sharp/Net/EndPointListener.cs +++ b/websocket-sharp/Net/EndPointListener.cs @@ -154,9 +154,10 @@ namespace WebSocketSharp.Net private static void addSpecial (List prefixes, HttpListenerPrefix prefix) { var path = prefix.Path; - foreach (var pref in prefixes) + foreach (var pref in prefixes) { if (pref.Path == path) throw new HttpListenerException (87, "The prefix is already in use."); + } prefixes.Add (prefix); }