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