summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2023-02-09 15:36:54 +0500
committerElzorFox <elzorfox@ya.ru>2023-02-09 15:36:54 +0500
commit6ef65121fed3c38c467238a08bf96bf98a23d7d8 (patch)
treeb46544be3a846adb333aec72fc4a918b5fa4ee2d /protocols/VKontakte/src/vk_thread.cpp
parent3f4b4407e1df2bc84f9b7d46863044879d99fd7b (diff)
VKontakte:
fix cleaning AccessToken on any connection fail version bump
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index bafba46074..ee96f087f5 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -76,7 +76,9 @@ void CVkProto::ShutdownSession()
void CVkProto::ConnectionFailed(int iReason)
{
- delSetting("AccessToken");
+ if (iReason == LOGINERR_WRONGPASSWORD)
+ delSetting("AccessToken");
+
m_bErr404Return = false;
ProtoBroadcastAck(0, ACKTYPE_LOGIN, ACKRESULT_FAILED, nullptr, iReason);