1
0
Fork 0

fixed wrong order

This commit is contained in:
Frank Celler 2016-04-28 19:28:04 +02:00
parent 9002783c5f
commit bc503c19c7
1 changed files with 3 additions and 1 deletions

View File

@ -494,7 +494,9 @@ void ApplicationServer::start() {
void ApplicationServer::stop() {
LOG_TOPIC(TRACE, Logger::STARTUP) << "ApplicationServer::stop";
for (auto feature : _orderedFeatures) {
for (auto it = _orderedFeatures.rbegin(); it != _orderedFeatures.rend(); ++it) {
auto feature = *it;
LOG_TOPIC(TRACE, Logger::STARTUP) << feature->name() << "::stop";
feature->stop();
feature->state(FeatureState::STOPPED);