diff --git a/wangle/ssl/TLSCredProcessor.cpp b/wangle/ssl/TLSCredProcessor.cpp index 229bbcced..572f53d78 100644 --- a/wangle/ssl/TLSCredProcessor.cpp +++ b/wangle/ssl/TLSCredProcessor.cpp @@ -85,7 +85,7 @@ void TLSCredProcessor::setTicketPathToWatch( ticketFile_ = ticketFile; password_ = password; if (!ticketFile_.empty()) { - auto ticketsChangedCob = [=]() { + auto ticketsChangedCob = [this]() { ticketFileUpdated(ticketFile_, password_); }; poller_->addFileToTrack(ticketFile_, ticketsChangedCob);