Skip to content

Commit 031efc0

Browse files
committed
[websocket] Fix return values for websocket factory start/stop
1 parent d442e7b commit 031efc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/websockets/WebsocketFactory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ bool WebsocketFactory::setClientPoolCount(size_t count)
9898
/** @brief Start the client pools */
9999
bool WebsocketFactory::startClientPools()
100100
{
101-
bool ret = false;
101+
bool ret = true;
102102

103103
std::lock_guard<std::mutex> lock(s_client_pools_mutex);
104104
if (!s_client_pools.empty())
@@ -115,7 +115,7 @@ bool WebsocketFactory::startClientPools()
115115
/** @brief Stop the client pools */
116116
bool WebsocketFactory::stopClientPools()
117117
{
118-
bool ret = false;
118+
bool ret = true;
119119

120120
std::lock_guard<std::mutex> lock(s_client_pools_mutex);
121121
if (!s_client_pools.empty())

0 commit comments

Comments
 (0)