mirror of
https://github.com/celisej567/abaddon.git
synced 2026-01-04 10:10:03 +03:00
shut up HEARTBEAT_ACK
This commit is contained in:
@@ -96,11 +96,11 @@ std::vector<uint8_t> UDPSocket::Receive() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void UDPSocket::Stop() {
|
void UDPSocket::Stop() {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
closesocket(m_socket);
|
closesocket(m_socket);
|
||||||
#else
|
#else
|
||||||
close(m_socket);
|
close(m_socket);
|
||||||
#endif
|
#endif
|
||||||
m_running = false;
|
m_running = false;
|
||||||
if (m_thread.joinable()) m_thread.join();
|
if (m_thread.joinable()) m_thread.join();
|
||||||
}
|
}
|
||||||
@@ -264,6 +264,8 @@ void DiscordVoiceClient::OnGatewayMessage(const std::string &str) {
|
|||||||
case VoiceGatewayOp::Speaking:
|
case VoiceGatewayOp::Speaking:
|
||||||
HandleGatewaySpeaking(msg);
|
HandleGatewaySpeaking(msg);
|
||||||
break;
|
break;
|
||||||
|
case VoiceGatewayOp::HeartbeatAck:
|
||||||
|
break; // stfu
|
||||||
default:
|
default:
|
||||||
const auto opcode_int = static_cast<int>(msg.Opcode);
|
const auto opcode_int = static_cast<int>(msg.Opcode);
|
||||||
m_log->warn("Unhandled opcode: {}", opcode_int);
|
m_log->warn("Unhandled opcode: {}", opcode_int);
|
||||||
|
|||||||
Reference in New Issue
Block a user