Skip to content

Commit

Permalink
fix: wrong size assignment (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Life authored Sep 13, 2023
1 parent 1a9a492 commit b503476
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 @@ -826,8 +826,8 @@ void discord_voice_client::write_ready()
if (outbuf.size()) {
if (this->udp_send(outbuf[0].packet.data(), outbuf[0].packet.length()) == (int)outbuf[0].packet.length()) {
duration = outbuf[0].duration * timescale;
bufsize = outbuf[0].packet.length();
outbuf.erase(outbuf.begin());
bufsize = outbuf.size();
}
}
}
Expand Down

0 comments on commit b503476

Please sign in to comment.