From b0361e18675cba05ee3ebdf2d80b2f07575cc344 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 11 Apr 2021 16:37:12 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpListener.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/websocket-sharp/Net/HttpListener.cs b/websocket-sharp/Net/HttpListener.cs index 84481f67..efc1ae2d 100644 --- a/websocket-sharp/Net/HttpListener.cs +++ b/websocket-sharp/Net/HttpListener.cs @@ -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