diff --git a/ns3/ns-allinone-3.14.1/ns-3.14.1/src/wifi/model/block-ack-manager.cc b/ns3/ns-allinone-3.14.1/ns-3.14.1/src/wifi/model/block-ack-manager.cc index f09432d..71084b5 100644 --- a/ns3/ns-allinone-3.14.1/ns-3.14.1/src/wifi/model/block-ack-manager.cc +++ b/ns3/ns-allinone-3.14.1/ns-3.14.1/src/wifi/model/block-ack-manager.cc @@ -240,9 +240,9 @@ BlockAckManager::GetNextPacket (WifiMacHeader &hdr) { NS_LOG_FUNCTION (this); Ptr packet = 0; + CleanupBuffers (); if (m_retryPackets.size () > 0) { - CleanupBuffers (); PacketQueueI queueIt = m_retryPackets.front (); packet = queueIt->packet; hdr = queueIt->hdr;