diff options
author | ElzorFox <elzorfox@ya.ru> | 2023-02-09 15:36:54 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2023-02-09 15:36:54 +0500 |
commit | 6ef65121fed3c38c467238a08bf96bf98a23d7d8 (patch) | |
tree | b46544be3a846adb333aec72fc4a918b5fa4ee2d | |
parent | 3f4b4407e1df2bc84f9b7d46863044879d99fd7b (diff) |
VKontakte:
fix cleaning AccessToken on any connection fail
version bump
-rw-r--r-- | protocols/VKontakte/src/version.h | 2 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/version.h b/protocols/VKontakte/src/version.h index 38b974c8c1..fad645e254 100644 --- a/protocols/VKontakte/src/version.h +++ b/protocols/VKontakte/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 1
#define __RELEASE_NUM 14
-#define __BUILD_NUM 1
+#define __BUILD_NUM 2
#include <stdver.h>
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);
|