summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/ICQ-WIM/src/server.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index 3c27025714..7ddec6f6e9 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -1042,12 +1042,12 @@ void CIcqProto::OnStartSession(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *)
return;
case 401:
- if (root.detail() == 1002) { // session expired
- delSetting(DB_KEY_ATOKEN);
- delSetting(DB_KEY_SESSIONKEY);
+ delSetting(DB_KEY_ATOKEN);
+ delSetting(DB_KEY_SESSIONKEY);
+ if (root.detail() == 1002) // session expired
CheckPassword();
- }
- else ConnectionFailed(LOGINERR_WRONGPASSWORD, root.error());
+ else
+ ConnectionFailed(LOGINERR_WRONGPASSWORD, root.error());
return;
case 400: