From 1f19efc90e520870b43a763d64828fada343aa61 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 14 Dec 2020 01:39:36 -0500 Subject: change socket close code --- discord/discord.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/discord.cpp') diff --git a/discord/discord.cpp b/discord/discord.cpp index c86cc3b..ec58293 100644 --- a/discord/discord.cpp +++ b/discord/discord.cpp @@ -711,7 +711,7 @@ void DiscordClient::HandleGatewayReconnect(const GatewayMessage &msg) { m_heartbeat_waiter.kill(); if (m_heartbeat_thread.joinable()) m_heartbeat_thread.join(); - m_websocket.Stop(1012); // 1000 (kNormalClosureCode) and 1001 will invalidate the session id + m_websocket.Stop(4000); // 1000 (kNormalClosureCode) and 1001 will invalidate the session id std::memset(&m_zstream, 0, sizeof(m_zstream)); inflateInit2(&m_zstream, MAX_WBITS + 32); -- cgit v1.2.3