add an assert for an NLPacketList segment that is oversized

This commit is contained in:
Stephen Birarda 2015-07-09 12:13:15 -07:00
parent cafa8b65f5
commit 4c8f32ce7b

View file

@ -63,7 +63,7 @@ qint64 NLPacketList::writeData(const char* data, qint64 maxSize) {
// but the PacketList is not going to be sent ordered
qDebug() << "Error in PacketList::writeData - attempted to write a segment to an unordered packet that is"
<< "larger than the payload size.";
return -1;
Q_ASSERT(false);
}
// copy from currentPacket where the segment started to the beginning of the newPacket