Skip to content

Commit 08f5900

Browse files
committed
When the epoch has not increased since the last cleanup cycle, it means we can clear the pool, not that the pool is empty.
1 parent eaacac4 commit 08f5900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/http/client/http_client_asio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class asio_connection_pool : public std::enable_shared_from_this<asio_connection
316316
_ASSERTE(self.m_self_reference != nullptr);
317317
if (self.m_prev_epoch == self.m_epoch)
318318
{
319-
assert(self.m_connections.empty());
319+
self.m_connections.clear();
320320
self.m_self_reference = nullptr;
321321
}
322322
else

0 commit comments

Comments
 (0)