|
|
|
|
@ -2765,7 +2765,6 @@ namespace WebSocketSharp
|
|
|
|
|
/// </param>
|
|
|
|
|
public void SetCookie (Cookie cookie)
|
|
|
|
|
{
|
|
|
|
|
lock (_forConn) {
|
|
|
|
|
string msg;
|
|
|
|
|
if (!checkIfAvailable (true, false, true, false, false, true, out msg)) {
|
|
|
|
|
_logger.Error (msg);
|
|
|
|
|
@ -2774,6 +2773,14 @@ namespace WebSocketSharp
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lock (_forConn) {
|
|
|
|
|
if (!checkIfAvailable (true, false, false, true, out msg)) {
|
|
|
|
|
_logger.Error (msg);
|
|
|
|
|
error ("An error has occurred in setting a cookie.", null);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (cookie == null) {
|
|
|
|
|
_logger.Error ("'cookie' is null.");
|
|
|
|
|
error ("An error has occurred in setting a cookie.", null);
|
|
|
|
|
|