Bug in receiving a packet. Assert to highlight the problem.

This commit is contained in:
Tommaso Pecorella committed 2014-04-06 10:00:58 +02:00
1 parent 03b42671e5
commit 3f100d93af
1 file changed
+3 -1
+3 -1
View File
@@ -733,8 +733,10 @@ LrWpanMac::PdDataConfirm (LrWpanPhyEnumeration status)
{
NS_ASSERT (m_lrWpanMacState == MAC_SENDING);
NS_LOG_FUNCTION (this << status << (m_txQueue.empty () ? 0 : m_txQueue.size ()));
NS_LOG_FUNCTION (this << status << m_txQueue.size ());
// \todo: Temporary assert. This is a bug.
NS_ASSERT_MSG (m_txQueue.size () > 0, "TxQsize = 0");
TxQueueElement *txQElement = m_txQueue.front ();
LrWpanMacHeader macHdr;