diff --git a/src/applications/model/bulk-send-application.cc b/src/applications/model/bulk-send-application.cc index 65ef8932b..74980e4f8 100644 --- a/src/applications/model/bulk-send-application.cc +++ b/src/applications/model/bulk-send-application.cc @@ -194,11 +194,11 @@ void BulkSendApplication::SendData (void) NS_LOG_LOGIC ("sending packet at " << Simulator::Now ()); Ptr packet = Create (toSend); - m_txTrace (packet); int actual = m_socket->Send (packet); if (actual > 0) { m_totBytes += actual; + m_txTrace (packet); } // We exit this loop when actual < toSend as the send side // buffer is full. The "DataSent" callback will pop when