[Modify] Replace it
This commit is contained in:
parent
d1c3b6c9a2
commit
bea69ddebc
@ -550,12 +550,13 @@ namespace WebSocketSharp.Net
|
||||
|
||||
_contextRegistry.AddLast (context);
|
||||
|
||||
var ares = getAsyncResultFromQueue ();
|
||||
|
||||
if (ares == null)
|
||||
if (_waitQueue.Count == 0) {
|
||||
_contextQueue.Enqueue (context);
|
||||
else
|
||||
}
|
||||
else {
|
||||
var ares = _waitQueue.Dequeue ();
|
||||
ares.Complete (context);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user