fix race in csma-cd channel

This commit is contained in:
Craig Dowell
2007-08-08 14:19:56 -07:00
parent 08062bc3c5
commit 371b1b01cb

View File

@@ -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;
}