[Modify] Polish it
This commit is contained in:
parent
7707872368
commit
e2223f4c6c
@ -544,13 +544,16 @@ namespace WebSocketSharp.Net
|
||||
}
|
||||
}
|
||||
|
||||
internal HttpListenerAsyncResult BeginGetContext (HttpListenerAsyncResult asyncResult)
|
||||
internal HttpListenerAsyncResult BeginGetContext (
|
||||
HttpListenerAsyncResult asyncResult
|
||||
)
|
||||
{
|
||||
lock (_ctxRegistrySync) {
|
||||
if (!_listening)
|
||||
throw new HttpListenerException (995);
|
||||
|
||||
var ctx = getContextFromQueue ();
|
||||
|
||||
if (ctx == null)
|
||||
_waitQueue.Add (asyncResult);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user