summaryrefslogtreecommitdiffstats
path: root/src/bin/netconf/http_control_socket.cc
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2024-03-27 10:44:03 +0100
committerRazvan Becheriu <razvan@isc.org>2024-04-04 07:26:51 +0200
commit3127326ff8f966e86210b58dd0ee5eef230f52a2 (patch)
tree84dc2cb3c5d2cfdea969c2f315cc52f1ed857da1 /src/bin/netconf/http_control_socket.cc
parent[#3281] use shared_from_this (diff)
downloadkea-3127326ff8f966e86210b58dd0ee5eef230f52a2.tar.xz
kea-3127326ff8f966e86210b58dd0ee5eef230f52a2.zip
[#3281] stop service just in case it was still running
Diffstat (limited to 'src/bin/netconf/http_control_socket.cc')
-rw-r--r--src/bin/netconf/http_control_socket.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/netconf/http_control_socket.cc b/src/bin/netconf/http_control_socket.cc
index 3e7010f880..aa69a5054e 100644
--- a/src/bin/netconf/http_control_socket.cc
+++ b/src/bin/netconf/http_control_socket.cc
@@ -102,6 +102,7 @@ HttpControlSocket::sendCommand(ConstElementPtr command) {
io_service->run();
client.stop();
+ io_service->stop();
io_service->restart();
try {
io_service->poll();