diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Discord/src/gateway.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp index 56d2b9ccf5..adee0a2018 100644 --- a/protocols/Discord/src/gateway.cpp +++ b/protocols/Discord/src/gateway.cpp @@ -67,8 +67,9 @@ bool CDiscordProto::GatewayThreadWorker() m_szWSCookie = pszNewCookie; } + // if there's no cookie & Miranda is bounced with error 404, simply apply the cookie and try again if (pReply->resultCode != 101) - return false; + return pReply->resultCode == 404 && hdrs[1].szName == nullptr; // succeeded! debugLogA("Gateway connection succeeded"); |