diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-19 03:18:52 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-19 03:18:52 -0500 |
commit | c8dfd3f492e6087270651624a8fc042a7478514e (patch) | |
tree | 64a07c539f89195b7c0a869717fdfc3450f30e61 | |
parent | b68b61e4256b771bb4358d8017ce5fb42f972ca9 (diff) | |
download | abaddon-portaudio-c8dfd3f492e6087270651624a8fc042a7478514e.tar.gz abaddon-portaudio-c8dfd3f492e6087270651624a8fc042a7478514e.zip |
change close code back cuz it might have broken something
-rw-r--r-- | discord/discord.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/discord.cpp b/discord/discord.cpp index b506931..b5afec0 100644 --- a/discord/discord.cpp +++ b/discord/discord.cpp @@ -853,7 +853,7 @@ void DiscordClient::HandleGatewayReconnect(const GatewayMessage &msg) { m_heartbeat_waiter.kill(); if (m_heartbeat_thread.joinable()) m_heartbeat_thread.join(); - m_websocket.Stop(4000); // 1000 (kNormalClosureCode) and 1001 will invalidate the session id + m_websocket.Stop(1012); // 1000 (kNormalClosureCode) and 1001 will invalidate the session id std::memset(&m_zstream, 0, sizeof(m_zstream)); inflateInit2(&m_zstream, MAX_WBITS + 32); |