nghttpx: Fix crash when ConnectionHandler is deleted while doing memcached request

This commit is contained in:
Tatsuhiro Tsujikawa 2021-08-29 17:17:36 +09:00
parent c6f9780b1b
commit c5e9d0096a
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ MemcachedConnection::MemcachedConnection(const Address *addr,
try_count_(0),
connected_(false) {}
MemcachedConnection::~MemcachedConnection() { disconnect(); }
MemcachedConnection::~MemcachedConnection() { conn_.disconnect(); }
namespace {
void clear_request(std::deque<std::unique_ptr<MemcachedRequest>> &q) {