[Modify] Move it
This commit is contained in:
parent
ebbc0a0bf9
commit
42f695ef30
@ -456,8 +456,6 @@ namespace WebSocketSharp.Net
|
||||
|
||||
private void registerContext (HttpListener listener)
|
||||
{
|
||||
_context.Listener = listener;
|
||||
|
||||
if (!listener.RegisterContext (_context)) {
|
||||
_context.ErrorStatusCode = 503;
|
||||
_context.SendError ();
|
||||
|
@ -646,6 +646,8 @@ namespace WebSocketSharp.Net
|
||||
if (!_listening)
|
||||
return false;
|
||||
|
||||
context.Listener = this;
|
||||
|
||||
_contextRegistry.AddLast (context);
|
||||
|
||||
if (_waitQueue.Count == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user