summaryrefslogtreecommitdiffstats
path: root/src/bin/d2/d2_controller.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2024-07-08 20:13:56 +0200
committerFrancis Dupont <fdupont@isc.org>2024-08-01 09:23:53 +0200
commit411a0b2353562fa7014e97294c93949089dce7be (patch)
treee11446655b66687f7595a2e36309d5805408e263 /src/bin/d2/d2_controller.cc
parent[#3477] Checkpoint: finished libconfig (diff)
downloadkea-411a0b2353562fa7014e97294c93949089dce7be.tar.xz
kea-411a0b2353562fa7014e97294c93949089dce7be.zip
[#3477] Checkpoint: updating servers
Diffstat (limited to 'src/bin/d2/d2_controller.cc')
-rw-r--r--src/bin/d2/d2_controller.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/d2/d2_controller.cc b/src/bin/d2/d2_controller.cc
index 2bfe5083cd..9534d0b9bf 100644
--- a/src/bin/d2/d2_controller.cc
+++ b/src/bin/d2/d2_controller.cc
@@ -7,6 +7,7 @@
#include <config.h>
#include <config/command_mgr.h>
+#include <config/http_command_mgr.h>
#include <d2/d2_controller.h>
#include <d2/d2_process.h>
#include <d2/parser_context.h>
@@ -103,8 +104,9 @@ D2Controller::registerCommands() {
void
D2Controller::deregisterCommands() {
try {
- // Close the command socket (if it exists).
+ // Close command sockets.
CommandMgr::instance().closeCommandSocket();
+ HttpCommandMgr::instance().close();
// Deregister any registered commands (please keep in alphabetic order)
CommandMgr::instance().deregisterCommand(BUILD_REPORT_COMMAND);