From 36019925464372f0502e1cd68bf1180af925be48 Mon Sep 17 00:00:00 2001 From: An Tao Date: Thu, 20 May 2021 13:15:59 +0800 Subject: [PATCH] Move resolverPtr when distorying an HttpClietImpl object (#860) --- lib/src/HttpClientImpl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/HttpClientImpl.cc b/lib/src/HttpClientImpl.cc index 5345b84c..b5b19092 100644 --- a/lib/src/HttpClientImpl.cc +++ b/lib/src/HttpClientImpl.cc @@ -238,7 +238,7 @@ HttpClientImpl::~HttpClientImpl() if (resolverPtr_ && !(loop_->isInLoopThread())) { // Make sure the resolverPtr_ is destroyed in the correct thread. - loop_->queueInLoop([reolverPtr = resolverPtr_]() {}); + loop_->queueInLoop([resolverPtr = std::move(resolverPtr_)]() {}); } }