[Fix] Move it out

As a preventive move. See: issue #235
This commit is contained in:
sta 2016-03-30 17:27:39 +09:00
parent 8fd4b160f8
commit 46014466ba

View File

@ -449,15 +449,17 @@ namespace WebSocketSharp.Net
{
_socket.Close ();
List<HttpConnection> conns = null;
lock (_unregisteredSync) {
var conns = new List<HttpConnection> (_unregistered.Keys);
conns = new List<HttpConnection> (_unregistered.Keys);
_unregistered.Clear ();
}
foreach (var conn in conns)
conn.Close (true);
conns.Clear ();
}
}
public void RemovePrefix (HttpListenerPrefix prefix, HttpListener listener)
{