diff options
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/Discord/src/options.cpp | 4 | ||||
| -rw-r--r-- | protocols/Discord/src/server.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Discord/src/options.cpp b/protocols/Discord/src/options.cpp index ea2d9a1598..28d9d05c43 100644 --- a/protocols/Discord/src/options.cpp +++ b/protocols/Discord/src/options.cpp @@ -85,6 +85,8 @@ public: auto *pReq = new AsyncHttpRequest(m_proto, REQUEST_POST, "/auth/logout", &CDiscordProto::OnReceiveLogout);
pReq->pUserInfo = this;
m_proto->Push(pReq);
+
+ CallService(MS_KS_ENABLEPROTOCOL, FALSE, LPARAM(m_proto->m_szModuleName));
}
void onLogout()
@@ -107,8 +109,6 @@ void CDiscordProto::OnReceiveLogout(MHttpResponse *, AsyncHttpRequest *pReq) m_szAccessToken = 0;
ShutdownSession();
- CallService(MS_KS_ENABLEPROTOCOL, FALSE, LPARAM(m_szModuleName));
-
auto *pDlg = (CDiscardAccountOptions *)pReq->pUserInfo;
pDlg->onLogout();
}
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp index c60e6c23ed..172faebe47 100644 --- a/protocols/Discord/src/server.cpp +++ b/protocols/Discord/src/server.cpp @@ -167,7 +167,7 @@ void CDiscordProto::OnReceiveMyInfo(MHttpResponse *pReply, AsyncHttpRequest*) m_ownId = id;
m_szCookie = pReply->GetCookies();
- CallService(MS_KS_ENABLEPROTOCOL, FALSE, LPARAM(m_szModuleName));
+ CallService(MS_KS_ENABLEPROTOCOL, TRUE, LPARAM(m_szModuleName));
// launch gateway thread
if (m_szGateway.IsEmpty())
|
