[Modify] Polish it
This commit is contained in:
parent
04fe7d5ad1
commit
6c3706602c
@ -468,12 +468,14 @@ namespace WebSocketSharp.Net
|
||||
_socket.Close ();
|
||||
|
||||
HttpConnection[] conns = null;
|
||||
|
||||
lock (_unregisteredSync) {
|
||||
if (_unregistered.Count == 0)
|
||||
return;
|
||||
|
||||
var keys = _unregistered.Keys;
|
||||
conns = new HttpConnection[keys.Count];
|
||||
|
||||
keys.CopyTo (conns, 0);
|
||||
_unregistered.Clear ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user