mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-04 12:17:37 +01:00
#3266: Order of Util::Application::uninitialize() is not in reverse as documented
This commit is contained in:
@@ -193,13 +193,14 @@ void Application::uninitialize()
|
|||||||
{
|
{
|
||||||
if (_initialized)
|
if (_initialized)
|
||||||
{
|
{
|
||||||
for (auto& pSub: _subsystems)
|
for (SubsystemVec::reverse_iterator it = _subsystems.rbegin(); it != _subsystems.rend(); ++it)
|
||||||
{
|
{
|
||||||
_pLogger->debug(std::string("Uninitializing subsystem: ") + pSub->name());
|
_pLogger->debug(std::string("Uninitializing subsystem: ") + (*it)->name());
|
||||||
pSub->uninitialize();
|
(*it)->uninitialize();
|
||||||
}
|
}
|
||||||
_initialized = false;
|
_initialized = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user