]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[153-netconf-agent] Fixed closure
authorFrancis Dupont <fdupont@isc.org>
Thu, 25 Oct 2018 11:58:37 +0000 (13:58 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 30 Oct 2018 11:50:38 +0000 (07:50 -0400)
src/bin/netconf/netconf_process.cc

index aa2e53c0fc9a44eb41b914dd53504e9007beb591..c242f2ded6b01c4160343221dd37333c0db6365c 100644 (file)
@@ -58,7 +58,7 @@ NetconfProcess::run() {
         }
 
         // Initialize the agent in a thread.
-        Thread th([cfg_mgr]() { agent_.init(cfg_mgr); });
+        Thread th([this, cfg_mgr]() { agent_.init(cfg_mgr); });
 
         // Let's process incoming data or expiring timers in a loop until
         // shutdown condition is detected.