[Modify] Polish it
This commit is contained in:
parent
aad7490e5d
commit
7e6896fc0c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user