network: (fixes #703) Initialize Channel objects at time zero

This commit is contained in:
Tom Henderson
2024-01-12 15:35:02 -08:00
parent 53e834fd14
commit ce636db415

View File

@@ -178,6 +178,7 @@ ChannelListPriv::Add(Ptr<Channel> channel)
NS_LOG_FUNCTION(this << channel);
uint32_t index = m_channels.size();
m_channels.push_back(channel);
Simulator::Schedule(TimeStep(0), &Channel::Initialize, channel);
return index;
}