From a79b2d418e1a67b3af034d81fa3df09afc92329e Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 28 Sep 2022 20:44:33 -0400 Subject: synchronize ws close/open to creating thread --- src/discord/websocket.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/discord/websocket.hpp') diff --git a/src/discord/websocket.hpp b/src/discord/websocket.hpp index ca7dcc6..ba55254 100644 --- a/src/discord/websocket.hpp +++ b/src/discord/websocket.hpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -42,4 +43,8 @@ private: type_signal_message m_signal_message; bool m_print_messages = true; + + Glib::Dispatcher m_open_dispatcher; + Glib::Dispatcher m_close_dispatcher; + std::atomic m_close_code; }; -- cgit v1.2.3