1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-25 22:17:45 +00:00

cleanup boost::posix_time

This commit is contained in:
NotAdam 2018-10-26 20:10:29 +11:00
parent 7292dc3695
commit 6885a243f3
3 changed files with 3 additions and 3 deletions

View file

@ -192,7 +192,7 @@ namespace SimpleWeb {
return nullptr;
auto timer=std::make_shared<asio::deadline_timer>(io_service);
timer->expires_from_now(boost::posix_time::seconds(config.timeout));
timer->expires_from_now( std::chrono::seconds( config.timeout ) );
timer->async_wait([this](const std::error_code& ec) {
if(!ec) {
close();

View file

@ -225,7 +225,7 @@ namespace SimpleWeb {
return nullptr;
auto timer=std::make_shared<asio::deadline_timer>(*io_service);
timer->expires_from_now(boost::posix_time::seconds(seconds));
timer->expires_from_now( std::chrono::seconds( seconds ) );
timer->async_wait([socket](const std::error_code& ec){
if(!ec) {
std::error_code ec;

View file

@ -209,7 +209,7 @@ namespace SimpleWeb {
return nullptr;
auto timer = std::make_shared< asio::deadline_timer >( io_service );
timer->expires_from_now( boost::posix_time::seconds( config.timeout ) );
timer->expires_from_now( std::chrono::seconds( config.timeout ) );
timer->async_wait( [this]( const std::error_code& ec ) {
if( !ec ) {
close();