[Modify] Polish it

This commit is contained in:
sta 2020-09-27 19:38:28 +09:00
parent 40a78fb1cc
commit 5bbcac08e0

View File

@ -203,6 +203,7 @@ namespace WebSocketSharp.Net
public static void AddListener (HttpListener listener) public static void AddListener (HttpListener listener)
{ {
var added = new List<string> (); var added = new List<string> ();
lock (((ICollection) _endpoints).SyncRoot) { lock (((ICollection) _endpoints).SyncRoot) {
try { try {
foreach (var pref in listener.Prefixes) { foreach (var pref in listener.Prefixes) {