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