diff --git a/third-party/folly/src/folly/futures/ThreadWheelTimekeeper.cpp b/third-party/folly/src/folly/futures/ThreadWheelTimekeeper.cpp index 0e0df0979e7821..3056766c254f14 100644 --- a/third-party/folly/src/folly/futures/ThreadWheelTimekeeper.cpp +++ b/third-party/folly/src/folly/futures/ThreadWheelTimekeeper.cpp @@ -58,8 +58,9 @@ SemiFuture ThreadWheelTimekeeper::after(HighResDuration dur) { // canceling timeout is executed in EventBase thread, the actual timeout // callback has either been executed, or will never be executed. So we are // fine here. - eventBase_.runInEventBaseThread([this, cob = std::move(cob), dur] { - wheelTimer_->scheduleTimeout(cob.get(), folly::chrono::ceil(dur)); + eventBase_.runInEventBaseThread([this, cob2 = std::move(cob), dur] { + wheelTimer_->scheduleTimeout( + cob2.get(), folly::chrono::ceil(dur)); }); return std::move(sf); }