[Modify] Polish it
This commit is contained in:
parent
518ca92526
commit
24aef191cc
@ -274,13 +274,17 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool removeSpecial (List<HttpListenerPrefix> prefixes, HttpListenerPrefix prefix)
|
private static bool removeSpecial (
|
||||||
|
List<HttpListenerPrefix> prefixes, HttpListenerPrefix prefix
|
||||||
|
)
|
||||||
{
|
{
|
||||||
var path = prefix.Path;
|
var path = prefix.Path;
|
||||||
var cnt = prefixes.Count;
|
var cnt = prefixes.Count;
|
||||||
|
|
||||||
for (var i = 0; i < cnt; i++) {
|
for (var i = 0; i < cnt; i++) {
|
||||||
if (prefixes[i].Path == path) {
|
if (prefixes[i].Path == path) {
|
||||||
prefixes.RemoveAt (i);
|
prefixes.RemoveAt (i);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user