Strange, in theory the timer is canceled when the node is shutdown
You can try this
bool Batman::handleNodeStart(IDoneCallback *doneCallback)
{
for (auto & elem : if_list)
{
BatmanIf *batman_if = elem;
schedule_own_packet(batman_if);
}
simtime_t curr_time = simTime();
simtime_t select_timeout = forw_list[0]->send_time > curr_time ? forw_list[0]->send_time : curr_time+10;
cancelEvent(timer);
scheduleAt(select_timeout, timer);
scheduleNextEvent();
return true;
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.