From 3312b19085ef68b63daed0f04aa676e5cdfa3b43 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 1 Jan 2024 21:09:14 +0300 Subject: fixes #4092 (Discord: cannot autologin at startup) --- protocols/Discord/src/gateway.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Discord/src/gateway.cpp') diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp index 0530945c3e..04958142be 100644 --- a/protocols/Discord/src/gateway.cpp +++ b/protocols/Discord/src/gateway.cpp @@ -315,7 +315,7 @@ void CDiscordProto::GatewaySendResume() bool CDiscordProto::GatewaySendStatus(int iStatus, const wchar_t *pwszStatusText) { if (iStatus == ID_STATUS_OFFLINE) { - Push(new AsyncHttpRequest(this, REQUEST_POST, "/auth/logout", nullptr)); + Push(new AsyncHttpRequest(this, REQUEST_POST, "/auth/logout", &CDiscordProto::OnReceiveLogout)); return true; } -- cgit v1.2.3