]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5674] Pause in terminated and backup state.
authorMarcin Siodelski <marcin@isc.org>
Wed, 11 Jul 2018 12:56:23 +0000 (14:56 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 11 Jul 2018 12:56:23 +0000 (14:56 +0200)
src/hooks/dhcp/high_availability/ha_service.cc

index e917e130173640c1e6025a7773f1d34c765685fa..8546dab1c49e7e6c8b50d08ccd4974c039373097 100644 (file)
@@ -115,6 +115,7 @@ HAService::backupStateHandler() {
     if (doOnEntry()) {
         query_filter_.serveNoScopes();
         adjustNetworkState();
+        state_machine_control_.notify(getCurrState());
     }
 
     // There is nothing to do in that state. This server simply receives
@@ -368,6 +369,7 @@ HAService::terminatedStateHandler() {
     if (doOnEntry()) {
         query_filter_.serveDefaultScopes();
         adjustNetworkState();
+        state_machine_control_.notify(getCurrState());
 
         // In the terminated state we don't send heartbeat.
         communication_state_->stopHeartbeat();