From 4c8f32ce7be8579652215697c2478cda9bb58783 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 9 Jul 2015 12:13:15 -0700 Subject: [PATCH] add an assert for an NLPacketList segment that is oversized --- libraries/networking/src/NLPacketList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/networking/src/NLPacketList.cpp b/libraries/networking/src/NLPacketList.cpp index 785e3c3f9f..8cadc1b9f5 100644 --- a/libraries/networking/src/NLPacketList.cpp +++ b/libraries/networking/src/NLPacketList.cpp @@ -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