Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/xhawk18/promise-cpp into …
Browse files Browse the repository at this point in the history
…master
  • Loading branch information
xhawk18 committed Sep 25, 2021
2 parents 59f4364 + 4a3902a commit 70e00de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add_ons/asio/timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ inline Promise wait(boost::asio::io_service &io, Defer d, uint64_t time_ms) {
timer->cancel();
pm_delete(timer);
}
}).call(dTimer);
}).then(dTimer);

timer->async_wait([=](const boost::system::error_code& error_code) {
if (!dTimer->any_.empty()) {
Expand Down

0 comments on commit 70e00de

Please sign in to comment.