diff --git a/xplat/Sonar/SonarWebSocketImpl.cpp b/xplat/Sonar/SonarWebSocketImpl.cpp index 24c68faa9..fe9f5d12f 100644 --- a/xplat/Sonar/SonarWebSocketImpl.cpp +++ b/xplat/Sonar/SonarWebSocketImpl.cpp @@ -99,7 +99,7 @@ SonarWebSocketImpl::~SonarWebSocketImpl() { void SonarWebSocketImpl::start() { folly::makeFuture() .via(worker_->getEventBase()) - .delayedUnsafe(std::chrono::milliseconds(0)) + .delayed(std::chrono::milliseconds(0)) .then([this]() { startSync(); }); } @@ -185,7 +185,7 @@ void SonarWebSocketImpl::connectSecurely() { void SonarWebSocketImpl::reconnect() { folly::makeFuture() .via(worker_->getEventBase()) - .delayedUnsafe(std::chrono::seconds(reconnectIntervalSeconds)) + .delayed(std::chrono::seconds(reconnectIntervalSeconds)) .then([this]() { startSync(); }); }