summaryrefslogtreecommitdiff
path: root/src/mongo/executor/async_timer_asio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/executor/async_timer_asio.cpp')
-rw-r--r--src/mongo/executor/async_timer_asio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/executor/async_timer_asio.cpp b/src/mongo/executor/async_timer_asio.cpp
index 293ab3e137a..d8951d22d43 100644
--- a/src/mongo/executor/async_timer_asio.cpp
+++ b/src/mongo/executor/async_timer_asio.cpp
@@ -34,7 +34,7 @@ namespace mongo {
namespace executor {
AsyncTimerASIO::AsyncTimerASIO(asio::io_service::strand* strand, Milliseconds expiration)
- : _strand(strand), _timer(_strand->get_io_service(), expiration) {}
+ : _strand(strand), _timer(_strand->get_io_service(), expiration.toSystemDuration()) {}
void AsyncTimerASIO::cancel() {
_timer.cancel();