diff --git a/src/devices/csma-cd/csma-cd-channel.cc b/src/devices/csma-cd/csma-cd-channel.cc index 7b6d211f7..30c84deda 100644 --- a/src/devices/csma-cd/csma-cd-channel.cc +++ b/src/devices/csma-cd/csma-cd-channel.cc @@ -267,7 +267,6 @@ CsmaCdChannel::PropagationCompleteEvent() m_currentPkt.GetUid () << ")"); NS_ASSERT(m_state == PROPAGATING); - m_state = IDLE; NS_DEBUG ("CsmaCdChannel::PropagationCompleteEvent (): Receive"); @@ -279,6 +278,7 @@ CsmaCdChannel::PropagationCompleteEvent() it->devicePtr->Receive (m_currentPkt); } } + m_state = IDLE; }