Added a new property

This commit is contained in:
WolverinDEV
2019-07-29 20:58:01 +02:00
parent dcd55275b5
commit 2ac8d26687
3 changed files with 4 additions and 3 deletions
@@ -228,7 +228,7 @@ void VoiceClientConnection::handleDatagramReceived(const pipes::buffer_view& buf
} else {
//TODO: Needs rethinking because read_queue.push_back increases the index, but this has not to be the packet id
if(!read_queue.push_back(move(packet))) {
debugMessage(this->client->getServerId(), "{} Got unordered packet of type {} which is out of the buffer range of {}. Packet ID: {}. Dropping packet.",
debugMessage(this->client->getServerId(), "{} Got unordered packet of type {} which is out of the buffer capacity of {}. Packet ID: {}. Dropping packet.",
CLIENT_STR_LOG_PREFIX_(this->client),
packet_type.name(),
read_queue.capacity(),
@@ -237,7 +237,7 @@ void VoiceClientConnection::handleDatagramReceived(const pipes::buffer_view& buf
);
}
{
//A max entropie of 16 packets should not happen. This indicates more that 16 or more packets got lost
//A max entropy of 16 packets should not happen. This indicates more that 16 or more packets got lost
auto current_index = read_queue.current_index();
if(current_index + 16 < packet_id)
read_queue.set_full_index_to(packet_id);