]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3975] Unregister timers prior to reconfiguration.
authorMarcin Siodelski <marcin@isc.org>
Mon, 12 Oct 2015 16:26:11 +0000 (18:26 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 12 Oct 2015 16:26:11 +0000 (18:26 +0200)
src/bin/dhcp6/json_config_parser.cc

index 8f04b97346b85bab7a94a61fe448de70a28524a5..cc269ae91c829ec838b81fcdd46839d100fdb4e8 100644 (file)
@@ -26,6 +26,7 @@
 #include <dhcpsrv/cfgmgr.h>
 #include <dhcpsrv/pool.h>
 #include <dhcpsrv/subnet.h>
+#include <dhcpsrv/timer_mgr.h>
 #include <dhcpsrv/triplet.h>
 #include <dhcpsrv/parsers/dbaccess_parser.h>
 #include <dhcpsrv/parsers/dhcp_config_parser.h>
@@ -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