From: Marcin Siodelski Date: Mon, 12 Oct 2015 16:26:11 +0000 (+0200) Subject: [3975] Unregister timers prior to reconfiguration. X-Git-Tag: trac3874_base~15^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0be32c722927094ea04a3be3ff88b245c3fdbc28;p=thirdparty%2Fkea.git [3975] Unregister timers prior to reconfiguration. --- diff --git a/src/bin/dhcp6/json_config_parser.cc b/src/bin/dhcp6/json_config_parser.cc index 8f04b97346..cc269ae91c 100644 --- a/src/bin/dhcp6/json_config_parser.cc +++ b/src/bin/dhcp6/json_config_parser.cc @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -745,6 +746,9 @@ configureDhcp6Server(Dhcpv6Srv&, isc::data::ConstElementPtr config_set) { // so newly recreated configuration starts with first subnet-id equal 1. Subnet::resetSubnetID(); + // Remove any existing timers. + TimerMgr::instance()->unregisterTimers(); + // Some of the values specified in the configuration depend on // other values. Typically, the values in the subnet6 structure // depend on the global values. Also, option values configuration