diff options
Diffstat (limited to 'src/hooks/dhcp/mysql_cb/mysql_cb_dhcp6.cc')
-rw-r--r-- | src/hooks/dhcp/mysql_cb/mysql_cb_dhcp6.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hooks/dhcp/mysql_cb/mysql_cb_dhcp6.cc b/src/hooks/dhcp/mysql_cb/mysql_cb_dhcp6.cc index 9c56999794..103da095c7 100644 --- a/src/hooks/dhcp/mysql_cb/mysql_cb_dhcp6.cc +++ b/src/hooks/dhcp/mysql_cb/mysql_cb_dhcp6.cc @@ -2784,8 +2784,7 @@ public: if (reopened) { // Cancel the timer. - const std::string& timer_name = db_reconnect_ctl->timerName(); - TimerMgr::instance()->cancel(timer_name); + TimerMgr::instance()->cancel(db_reconnect_ctl->timerName()); DatabaseConnection::invokeDbRecoveredCallback(db_reconnect_ctl); } else { @@ -2804,6 +2803,7 @@ public: .arg(db_reconnect_ctl->maxRetries()) .arg(db_reconnect_ctl->retryInterval()); + // Start the timer. TimerMgr::instance()->setup(db_reconnect_ctl->timerName()); } |