diff --git a/wangle/acceptor/Acceptor.cpp b/wangle/acceptor/Acceptor.cpp index 70f09e094..207d825cf 100644 --- a/wangle/acceptor/Acceptor.cpp +++ b/wangle/acceptor/Acceptor.cpp @@ -641,7 +641,7 @@ void Acceptor::dropEstablishedConnections( void Acceptor::dropIdleConnectionsBasedOnTimeout( std::chrono::milliseconds targetIdleTimeMs, const std::function& droppedConnectionsCB) { - base_->runInEventBaseThread([&] { + base_->runInEventBaseThread([this, targetIdleTimeMs, droppedConnectionsCB] { if (downstreamConnectionManager_) { VLOG(3) << "Dropping connections based on idle timeout " << targetIdleTimeMs.count() << " from acceptor=" << this