reset DiscordClient::m_heartbeat_acked on ::Start()

This commit is contained in:
ouwou
2020-09-20 03:02:27 -04:00
parent 61ab5fd7b3
commit 23b32f8de9

View File

@@ -12,6 +12,7 @@ void DiscordClient::Start() {
std::memset(&m_zstream, 0, sizeof(m_zstream));
inflateInit2(&m_zstream, MAX_WBITS + 32);
m_heartbeat_acked = true;
m_client_connected = true;
m_websocket.StartConnection(DiscordGateway);
m_websocket.SetMessageCallback(std::bind(&DiscordClient::HandleGatewayMessageRaw, this, std::placeholders::_1));