From ca2130c386cf13bd34ac9dad9ce5bcc3252d7fd7 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Wed, 19 Apr 2017 16:34:46 +0200 Subject: [PATCH] [5186] Made timer unregistration conditional (seems to be enough) --- src/bin/dhcp4/json_config_parser.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/dhcp4/json_config_parser.cc b/src/bin/dhcp4/json_config_parser.cc index 3577032aa6..faec9b2544 100644 --- a/src/bin/dhcp4/json_config_parser.cc +++ b/src/bin/dhcp4/json_config_parser.cc @@ -413,7 +413,9 @@ configureDhcp4Server(Dhcpv4Srv&, isc::data::ConstElementPtr config_set, Subnet::resetSubnetID(); // Remove any existing timers. - TimerMgr::instance()->unregisterTimers(); + if (!check_only) { + TimerMgr::instance()->unregisterTimers(); + } // Revert any runtime option definitions configured so far and not committed. LibDHCP::revertRuntimeOptionDefs(); -- 2.47.2