[Modify] Move it
This commit is contained in:
@@ -302,6 +302,9 @@ namespace WebSocketSharp.Net
|
||||
conn._lastListener = lsnr;
|
||||
}
|
||||
|
||||
if (!conn._context.Authenticate ())
|
||||
return;
|
||||
|
||||
if (conn._context.Register ())
|
||||
conn._contextRegistered = true;
|
||||
|
||||
|
@@ -582,9 +582,6 @@ namespace WebSocketSharp.Net
|
||||
if (!_listening)
|
||||
return false;
|
||||
|
||||
if (!context.Authenticate ())
|
||||
return false;
|
||||
|
||||
lock (_ctxRegistrySync) {
|
||||
if (!_listening)
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user