[Modify] Polish it
This commit is contained in:
parent
76ecc3fbbf
commit
ce577ff0f7
@ -475,11 +475,13 @@ namespace WebSocketSharp.Net
|
|||||||
private void cleanupWaitQueue (Exception exception)
|
private void cleanupWaitQueue (Exception exception)
|
||||||
{
|
{
|
||||||
HttpListenerAsyncResult[] aress = null;
|
HttpListenerAsyncResult[] aress = null;
|
||||||
|
|
||||||
lock (_waitQueueSync) {
|
lock (_waitQueueSync) {
|
||||||
if (_waitQueue.Count == 0)
|
if (_waitQueue.Count == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
aress = _waitQueue.ToArray ();
|
aress = _waitQueue.ToArray ();
|
||||||
|
|
||||||
_waitQueue.Clear ();
|
_waitQueue.Clear ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user