Revision 68da4f12 src/sim/csimplemodule.cc

View differences:

src/sim/csimplemodule.cc
731 731

  
732 732
void cSimpleModule::endSimulation()
733 733
{
734
    throw cTerminationException(eENDSIM);
734
    // throwing an exception from a worker thread is not caught and the simulation
735
    // is not cleanly shut down. Workaround: signal shutdown directly to scheduler
736
    //throw cTerminationException(eENDSIM);
737
    simulation.signalShutdown();
735 738
}
736 739

  
737 740
bool cSimpleModule::snapshot(cObject *object, const char *label)

Also available in: Unified diff