[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) {
|
lock (_ctxRegistrySync) {
|
||||||
if (!_listening)
|
if (!_listening)
|
||||||
throw new HttpListenerException (995);
|
throw new HttpListenerException (995);
|
||||||
|
|
||||||
var ctx = getContextFromQueue ();
|
var ctx = getContextFromQueue ();
|
||||||
|
|
||||||
if (ctx == null)
|
if (ctx == null)
|
||||||
_waitQueue.Add (asyncResult);
|
_waitQueue.Add (asyncResult);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user