From 698930dd28f2072d36f70efecfec32c7042c8016 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 4 Mar 2018 18:12:17 +0300 Subject: fixes #1173 (random crash on a fresh Discord account) --- protocols/Discord/src/gateway.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols') diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp index 480cf6c012..ffd66f6d0a 100644 --- a/protocols/Discord/src/gateway.cpp +++ b/protocols/Discord/src/gateway.cpp @@ -356,6 +356,11 @@ void CDiscordProto::GatewaySendHeartbeat() void CDiscordProto::GatewaySendIdentify() { + if (m_szAccessToken == nullptr) { + ConnectionFailed(LOGINERR_WRONGPASSWORD); + return; + } + wchar_t wszOs[256]; GetOSDisplayString(wszOs, _countof(wszOs)); -- cgit v1.2.3