diff options
| author | George Hazan <ghazan@miranda.im> | 2020-08-18 15:34:47 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2020-08-18 15:34:47 +0300 |
| commit | 5793d48b5574e234397f6cb7a96997342ba44ac0 (patch) | |
| tree | e6b24c9fd4d5c2e4e0e8aa13f217d41e96a303a2 /protocols | |
| parent | 120694551ba58b62b2d0e7c68021e7525cdeac0e (diff) | |
fixes #2544 (ICQ: statusCode:401)
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/ICQ-WIM/src/server.cpp | 10 |
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: |
