[Modify] Polish it
This commit is contained in:
parent
58dc23f1c1
commit
b0361e1867
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user