Commit 98141971 authored by Thomas Markwalder's avatar Thomas Markwalder

[4492] Explicitly unload hook libraries prior during shutdown

A call to HooksManager::getHooksManager().unloadLibraries() was added to
the destructors Dhcpv4Srv::~Dhcpv4Srv() and Dhcpv6Srv::~Dhcpv6Srv(). This
ensures hook libraries are unloaded prior to static objects.
parent 05033744
......@@ -354,6 +354,9 @@ Dhcpv4Srv::~Dhcpv4Srv() {
// The lease manager was instantiated during DHCPv4Srv configuration,
// so we should clean up after ourselves.
LeaseMgrFactory::destroy();
// Explicitly unload hooks
HooksManager::getHooksManager().unloadLibraries();
}
void
......
......@@ -214,6 +214,9 @@ Dhcpv6Srv::~Dhcpv6Srv() {
IfaceMgr::instance().closeSockets();
LeaseMgrFactory::destroy();
// Explicitly unload hooks
HooksManager::getHooksManager().unloadLibraries();
}
void Dhcpv6Srv::shutdown() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment