Skip to content

Commit

Permalink
fix wrong size assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Life committed Sep 12, 2023
1 parent 3d01c4d commit 7375ad7
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 7375ad7

Please sign in to comment.