[Modify] Move it

This commit is contained in:
sta 2016-05-26 14:22:00 +09:00
parent 8e6b88ab71
commit e36ee5e7ac
2 changed files with 3 additions and 3 deletions

View File

@ -302,6 +302,9 @@ namespace WebSocketSharp.Net
conn._lastListener = lsnr;
}
if (!conn._context.Authenticate ())
return;
if (conn._context.Register ())
conn._contextRegistered = true;

View File

@ -582,9 +582,6 @@ namespace WebSocketSharp.Net
if (!_listening)
return false;
if (!context.Authenticate ())
return false;
lock (_ctxRegistrySync) {
if (!_listening)
return false;