Skip to content

Commit

Permalink
fix: let the marker be handled by sending thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Life committed Apr 13, 2024
1 parent a8e4c00 commit b087235
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dpp/discordvoiceclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1174,8 +1174,10 @@ discord_voice_client& discord_voice_client::skip_to_next_marker() {
});

if (i != outbuf.end()) {
/* Skip queued packets until including found marker */
outbuf.erase(outbuf.begin(), i);
if (i != outbuf.begin()) {
/* Skip queued packets up to found marker */
outbuf.erase(outbuf.begin(), i-1);
}
} else {
/* No market found, skip the whole queue */
outbuf.clear();
Expand Down

0 comments on commit b087235

Please sign in to comment.