[Modify] Move it

This commit is contained in:
sta 2021-05-12 20:08:56 +09:00
parent ebbc0a0bf9
commit 42f695ef30
2 changed files with 2 additions and 2 deletions

View File

@ -456,8 +456,6 @@ namespace WebSocketSharp.Net
private void registerContext (HttpListener listener)
{
_context.Listener = listener;
if (!listener.RegisterContext (_context)) {
_context.ErrorStatusCode = 503;
_context.SendError ();

View File

@ -646,6 +646,8 @@ namespace WebSocketSharp.Net
if (!_listening)
return false;
context.Listener = this;
_contextRegistry.AddLast (context);
if (_waitQueue.Count == 0) {