mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 10:36:04 +02:00
add an assert that enqueued packet is part of message
This commit is contained in:
parent
33dc65a00a
commit
5fc09a68a8
2 changed files with 5 additions and 1 deletions
|
@ -737,6 +737,10 @@ void Connection::updateCongestionControlAndSendQueue(std::function<void ()> cong
|
|||
}
|
||||
|
||||
void PendingReceivedMessage::enqueuePacket(std::unique_ptr<Packet> packet) {
|
||||
Q_ASSERT_X(packet->isPartOfMessage(),
|
||||
"PendingReceivedMessage::enqueuePacket",
|
||||
"called with a packet that is not part of a message");
|
||||
|
||||
if (_isComplete) {
|
||||
qCDebug(networking) << "UNEXPECTED: Received packet for a message that is already complete";
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue