diff --git a/xplat/Sonar/SonarWebSocketImpl.cpp b/xplat/Sonar/SonarWebSocketImpl.cpp index 021d85744..8c01fd6ce 100644 --- a/xplat/Sonar/SonarWebSocketImpl.cpp +++ b/xplat/Sonar/SonarWebSocketImpl.cpp @@ -102,7 +102,7 @@ void SonarWebSocketImpl::start() { folly::makeFuture() .via(sonarEventBase_->getEventBase()) .delayed(std::chrono::milliseconds(0)) - .then([this]() { startSync(); }); + .thenValue([this](auto&&){ startSync(); }); } void SonarWebSocketImpl::startSync() { @@ -192,7 +192,7 @@ void SonarWebSocketImpl::reconnect() { folly::makeFuture() .via(sonarEventBase_->getEventBase()) .delayed(std::chrono::seconds(reconnectIntervalSeconds)) - .then([this]() { startSync(); }); + .thenValue([this](auto&&){ startSync(); }); } void SonarWebSocketImpl::stop() {