diff --git a/src/servers/sapphire_api/client_http.hpp b/src/servers/sapphire_api/client_http.hpp index 072dd0eb..7f9807fb 100644 --- a/src/servers/sapphire_api/client_http.hpp +++ b/src/servers/sapphire_api/client_http.hpp @@ -192,7 +192,7 @@ namespace SimpleWeb { return nullptr; auto timer=std::make_shared(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(); diff --git a/src/servers/sapphire_api/server_http.hpp b/src/servers/sapphire_api/server_http.hpp index 51069c4b..6992f773 100644 --- a/src/servers/sapphire_api/server_http.hpp +++ b/src/servers/sapphire_api/server_http.hpp @@ -225,7 +225,7 @@ namespace SimpleWeb { return nullptr; auto timer=std::make_shared(*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; diff --git a/src/servers/sapphire_lobby/client_http.hpp b/src/servers/sapphire_lobby/client_http.hpp index 4b550d13..a9518d30 100644 --- a/src/servers/sapphire_lobby/client_http.hpp +++ b/src/servers/sapphire_lobby/client_http.hpp @@ -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();