From 0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 5 Oct 2020 21:37:07 -0400 Subject: slap a bunch of shit everywhere until the crashing stops --- discord/discord.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'discord/discord.hpp') diff --git a/discord/discord.hpp b/discord/discord.hpp index 025d969..47486fb 100644 --- a/discord/discord.hpp +++ b/discord/discord.hpp @@ -11,6 +11,8 @@ #include #include #include +#include +#include // bruh #ifdef GetMessage @@ -147,6 +149,11 @@ private: HeartbeatWaiter m_heartbeat_waiter; std::atomic m_heartbeat_acked = true; + mutable std::mutex m_msg_mutex; + Glib::Dispatcher m_msg_dispatch; + std::queue m_msg_queue; + void MessageDispatch(); + // signals public: typedef sigc::signal type_signal_gateway_ready; -- cgit v1.2.3