mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
Revert "Respect activation priority also on deactivation"
This reverts commit 8ad1717055683c573f81181c7749ba422fa96d13.
This commit is contained in:
parent
4edd3ece66
commit
5da1cbd096
@ -33,7 +33,6 @@
|
|||||||
#include "base/workqueue.hpp"
|
#include "base/workqueue.hpp"
|
||||||
#include "base/context.hpp"
|
#include "base/context.hpp"
|
||||||
#include "base/application.hpp"
|
#include "base/application.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <boost/exception/errinfo_api_function.hpp>
|
#include <boost/exception/errinfo_api_function.hpp>
|
||||||
#include <boost/exception/errinfo_errno.hpp>
|
#include <boost/exception/errinfo_errno.hpp>
|
||||||
@ -618,13 +617,7 @@ void ConfigObject::RestoreObjects(const String& filename, int attributeTypes)
|
|||||||
|
|
||||||
void ConfigObject::StopObjects()
|
void ConfigObject::StopObjects()
|
||||||
{
|
{
|
||||||
auto types = Type::GetAllTypes();
|
for (const Type::Ptr& type : Type::GetAllTypes()) {
|
||||||
|
|
||||||
std::sort(types.begin(), types.end(), [](const Type::Ptr& a, const Type::Ptr& b) {
|
|
||||||
return a->GetActivationPriority() > b->GetActivationPriority();
|
|
||||||
});
|
|
||||||
|
|
||||||
for (const Type::Ptr& type : types) {
|
|
||||||
auto *dtype = dynamic_cast<ConfigType *>(type.get());
|
auto *dtype = dynamic_cast<ConfigType *>(type.get());
|
||||||
|
|
||||||
if (!dtype)
|
if (!dtype)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user