[Modify] Move it out
This commit is contained in:
parent
c2032eab71
commit
cbe6d690dc
@ -2773,6 +2773,13 @@ namespace WebSocketSharp
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cookie == null) {
|
||||||
|
_logger.Error ("'cookie' is null.");
|
||||||
|
error ("An error has occurred in setting a cookie.", null);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
lock (_forConn) {
|
lock (_forConn) {
|
||||||
if (!checkIfAvailable (true, false, false, true, out msg)) {
|
if (!checkIfAvailable (true, false, false, true, out msg)) {
|
||||||
_logger.Error (msg);
|
_logger.Error (msg);
|
||||||
@ -2781,13 +2788,6 @@ namespace WebSocketSharp
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cookie == null) {
|
|
||||||
_logger.Error ("'cookie' is null.");
|
|
||||||
error ("An error has occurred in setting a cookie.", null);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
lock (_cookies.SyncRoot)
|
lock (_cookies.SyncRoot)
|
||||||
_cookies.SetOrRemove (cookie);
|
_cookies.SetOrRemove (cookie);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user