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