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); }