[Modify] Polish it

master
sta 10 years ago
parent aad7490e5d
commit 7e6896fc0c

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

Loading…
Cancel
Save