[Modify] Polish it

This commit is contained in:
sta 2016-05-05 16:39:11 +09:00
parent aad7490e5d
commit 7e6896fc0c

View File

@ -212,9 +212,10 @@ namespace WebSocketSharp.Net
public static void RemoveListener (HttpListener listener) public static void RemoveListener (HttpListener listener)
{ {
lock (((ICollection) _addressToEndpoints).SyncRoot) lock (((ICollection) _addressToEndpoints).SyncRoot) {
foreach (var pref in listener.Prefixes) foreach (var pref in listener.Prefixes)
removePrefix (pref, listener); removePrefix (pref, listener);
}
} }
public static void RemovePrefix (string uriPrefix, HttpListener listener) public static void RemovePrefix (string uriPrefix, HttpListener listener)