[Modify] Remove it
This commit is contained in:
parent
5f7986a0a1
commit
4373798c8c
@ -647,26 +647,6 @@ namespace WebSocketSharp.Net
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal HttpListenerAsyncResult BeginGetContext (
|
|
||||||
HttpListenerAsyncResult asyncResult
|
|
||||||
)
|
|
||||||
{
|
|
||||||
lock (_contextRegistrySync) {
|
|
||||||
if (!_listening)
|
|
||||||
throw new HttpListenerException (995);
|
|
||||||
|
|
||||||
if (_contextQueue.Count == 0) {
|
|
||||||
_waitQueue.Enqueue (asyncResult);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
var ctx = _contextQueue.Dequeue ();
|
|
||||||
asyncResult.Complete (ctx, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
return asyncResult;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
internal void CheckDisposed ()
|
internal void CheckDisposed ()
|
||||||
{
|
{
|
||||||
if (_disposed)
|
if (_disposed)
|
||||||
|
Loading…
Reference in New Issue
Block a user