Fixed some stuff

This commit is contained in:
WolverinDEV
2019-08-01 11:37:30 +02:00
parent 54c9dbda99
commit 942ea44e90
4 changed files with 7 additions and 4 deletions
@@ -352,7 +352,9 @@ unique_ptr<protocol::ClientPacket> VoiceClientConnection::next_reassembled_packe
}
if(current_packet->type() != PacketTypeInfo::Command && current_packet->type() != PacketTypeInfo::CommandLow) {
return buffer->pop_front(); /* we don't have to reassemble anything */
auto tmp = buffer->pop_front(); /* we don't have to reassemble anything */
more |= buffer->front_set(); /* set the more flag if we know that we have more of this packet */
return tmp;
}
unique_ptr<ClientPacket> final_packet;
@@ -435,6 +437,7 @@ unique_ptr<protocol::ClientPacket> VoiceClientConnection::next_reassembled_packe
}
}
more |= buffer->front_set(); /* set the more flag if we have more to process */
buffer_lock.unlock();
std::string error = "success";