Move resolverPtr when distorying an HttpClietImpl object (#860)
This commit is contained in:
parent
32970172f6
commit
3601992546
|
@ -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_)]() {});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue