From 371b1b01cbf3ab0fbca85c461e56a95e99145a29 Mon Sep 17 00:00:00 2001 From: Craig Dowell Date: Wed, 8 Aug 2007 14:19:56 -0700 Subject: [PATCH] fix race in csma-cd channel --- src/devices/csma-cd/csma-cd-channel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }