[Modify] Polish it

This commit is contained in:
sta 2021-04-05 21:18:01 +09:00
parent 76ecc3fbbf
commit ce577ff0f7

View File

@ -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 ();
}