From: Thomas Markwalder Date: Fri, 14 May 2021 19:15:48 +0000 (-0400) Subject: [#1818] Restored function after rebase X-Git-Tag: Kea-1.9.8~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=897139bca70a34da3bc9a928c65d11cc8a3b3bb5;p=thirdparty%2Fkea.git [#1818] Restored function after rebase modified: src/lib/http/client.cc --- diff --git a/src/lib/http/client.cc b/src/lib/http/client.cc index 21c07765d7..cc1c5d2345 100644 --- a/src/lib/http/client.cc +++ b/src/lib/http/client.cc @@ -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.