From df6b01a6323a6b04c7c77c57869a6abde2c0b1b7 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 29 Sep 2021 01:14:33 -0400 Subject: [PATCH] dont purge on socket close --- discord/discord.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/discord/discord.cpp b/discord/discord.cpp index 7a33c05..10bd322 100644 --- a/discord/discord.cpp +++ b/discord/discord.cpp @@ -2077,9 +2077,6 @@ void DiscordClient::HandleSocketClose(uint16_t code) { if (m_heartbeat_thread.joinable()) m_heartbeat_thread.join(); m_client_connected = false; - m_store.ClearAll(); - m_guild_to_users.clear(); - if (m_client_started && !m_reconnecting && close_code == GatewayCloseCode::Abnormal) { Glib::signal_timeout().connect_once([this] { if (m_client_started) HandleGatewayReconnect(GatewayMessage()); }, 1000); m_reconnecting = true;