summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-15 19:01:06 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-15 19:01:06 +0300
commit145a2545aa3fba32aa2afdece9278a2550fcc67a (patch)
treecdcb45071ffd034819d609526bb390f52751a1f7 /protocols
parent9fcdcf854ce3ad6078fff9a82ad172e2605d6084 (diff)
Discord: access token should be cleared in memory as well after logout
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Discord/src/server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp
index d06e307539..113ea75f72 100644
--- a/protocols/Discord/src/server.cpp
+++ b/protocols/Discord/src/server.cpp
@@ -217,6 +217,7 @@ void CDiscordProto::OnReceiveCreateChannel(MHttpResponse *pReply, AsyncHttpReque
void CDiscordProto::OnReceiveLogout(MHttpResponse *, AsyncHttpRequest *)
{
delSetting(DB_KEY_TOKEN);
+ m_szAccessToken = 0;
ShutdownSession();
}