[Modify] Add it
This commit is contained in:
parent
0566aead24
commit
fa0880b1d0
@ -559,6 +559,22 @@ namespace WebSocketSharp.Net
|
|||||||
ares.Complete (exception);
|
ares.Complete (exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void cleanupWaitQueue (string message)
|
||||||
|
{
|
||||||
|
if (_waitQueue.Count == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var aress = _waitQueue.ToArray ();
|
||||||
|
|
||||||
|
_waitQueue.Clear ();
|
||||||
|
|
||||||
|
foreach (var ares in aress) {
|
||||||
|
var ex = new HttpListenerException (995, message);
|
||||||
|
|
||||||
|
ares.Complete (ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void close (bool force)
|
private void close (bool force)
|
||||||
{
|
{
|
||||||
if (!_listening) {
|
if (!_listening) {
|
||||||
|
Loading…
Reference in New Issue
Block a user