Skip to content

Commit

Permalink
fix: include combined event too
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis authored May 13, 2022
1 parent 5e73064 commit 9bcb028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/discordvoiceclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ void discord_voice_client::read_ready()
uint8_t buffer[65535];
int r = this->udp_recv((char*)buffer, sizeof(buffer));

if (r > 0 && !creator->on_voice_receive.empty()) {
if (r > 0 && (!creator->on_voice_receive.empty() || !creator->on_voice_receive_combined.empty())) {
const std::basic_string_view<uint8_t> packet{buffer, static_cast<size_t>(r)};
constexpr size_t header_size = 12;
if (static_cast<size_t>(r) < header_size) {
Expand Down

0 comments on commit 9bcb028

Please sign in to comment.