[Modify] Move it
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user