From 0aaebf9ea77eede8a347aa71b95e86686d04a854 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 15 Apr 2021 02:32:47 -0400 Subject: fix handling of reconnect messages --- discord/websocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/websocket.cpp') diff --git a/discord/websocket.cpp b/discord/websocket.cpp index 8dcccff..ff50cd3 100644 --- a/discord/websocket.cpp +++ b/discord/websocket.cpp @@ -16,7 +16,7 @@ void Websocket::SetUserAgent(std::string agent) { } void Websocket::Stop() { - m_websocket.stop(); + Stop(ix::WebSocketCloseConstants::kNormalClosureCode); } void Websocket::Stop(uint16_t code) { -- cgit v1.2.3