]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1818] Restored function after rebase
authorThomas Markwalder <tmark@isc.org>
Fri, 14 May 2021 19:15:48 +0000 (15:15 -0400)
committerThomas Markwalder <tmark@isc.org>
Mon, 17 May 2021 14:56:50 +0000 (10:56 -0400)
modified:   src/lib/http/client.cc

src/lib/http/client.cc

index 21c07765d7c84040ecf98fac7c5c41e53f6ae082..cc1c5d23456f8746e976939c5991ca10366d9751 100644 (file)
@@ -1778,6 +1778,13 @@ public:
         stop();
     }
 
+    /// @brief Starts client's thread pool, if multi-threaded.
+    void start() {
+        if (threads_) {
+            threads_->run();
+        }
+    }
+
     /// @brief Close all connections, and if multi-threaded, stops the
     /// thread pool.
     void stop() {
@@ -1814,19 +1821,6 @@ public:
         threads_->run();
     }
 
-
-    /// @brief Close all connections, and if multi-threaded, stop internal IOService
-    /// and the thread pool.
-    void stop() {
-        // Stop the thread pool.
-        if (threads_) {
-            threads_->stop();
-        }
-
-        // Close all the connections.
-        conn_pool_->closeAll();
-    }
-
     /// @brief Fetches the thread pool's run state.
     ///
     /// @return Operational state of the thread pool.