[Modify] Polish it

This commit is contained in:
sta 2021-04-11 16:37:12 +09:00
parent 58dc23f1c1
commit b0361e1867

View File

@ -528,10 +528,7 @@ namespace WebSocketSharp.Net
private HttpListenerContext getContextFromQueue ()
{
if (_contextQueue.Count == 0)
return null;
return _contextQueue.Dequeue ();
return _contextQueue.Count > 0 ? _contextQueue.Dequeue () : null;
}
#endregion