[Modify] Polish it

This commit is contained in:
sta 2016-06-03 16:19:43 +09:00
parent 6c36b785c3
commit 26163779ea

View File

@ -154,9 +154,10 @@ namespace WebSocketSharp.Net
private static void addSpecial (List<HttpListenerPrefix> prefixes, HttpListenerPrefix prefix) private static void addSpecial (List<HttpListenerPrefix> prefixes, HttpListenerPrefix prefix)
{ {
var path = prefix.Path; var path = prefix.Path;
foreach (var pref in prefixes) foreach (var pref in prefixes) {
if (pref.Path == path) if (pref.Path == path)
throw new HttpListenerException (87, "The prefix is already in use."); throw new HttpListenerException (87, "The prefix is already in use.");
}
prefixes.Add (prefix); prefixes.Add (prefix);
} }