Minimum boost version is 1.66.
This commit is contained in:
parent
ff7ebc2243
commit
cb7bf96a5b
1 changed files with 0 additions and 12 deletions
|
@ -590,11 +590,7 @@ std::string server::is_ip_banned(const std::string& ip)
|
|||
|
||||
void server::start_dump_stats()
|
||||
{
|
||||
#if BOOST_VERSION >= 106600
|
||||
dump_stats_timer_.expires_after(std::chrono::minutes(5));
|
||||
#else
|
||||
dump_stats_timer_.expires_from_now(std::chrono::minutes(5));
|
||||
#endif
|
||||
dump_stats_timer_.async_wait([this](const boost::system::error_code& ec) { dump_stats(ec); });
|
||||
}
|
||||
|
||||
|
@ -612,11 +608,7 @@ void server::dump_stats(const boost::system::error_code& ec)
|
|||
|
||||
void server::start_dummy_player_updates()
|
||||
{
|
||||
#if BOOST_VERSION >= 106600
|
||||
dummy_player_timer_.expires_after(std::chrono::seconds(dummy_player_timer_interval_));
|
||||
#else
|
||||
dummy_player_timer_.expires_from_now(std::chrono::seconds(dummy_player_timer_interval_));
|
||||
#endif
|
||||
dummy_player_timer_.async_wait([this](const boost::system::error_code& ec) { dummy_player_updates(ec); });
|
||||
}
|
||||
|
||||
|
@ -659,11 +651,7 @@ void server::dummy_player_updates(const boost::system::error_code& ec)
|
|||
|
||||
void server::start_tournaments_timer()
|
||||
{
|
||||
#if BOOST_VERSION >= 106600
|
||||
tournaments_timer_.expires_after(std::chrono::minutes(60));
|
||||
#else
|
||||
tournaments_timer_.expires_from_now(std::chrono::minutes(60));
|
||||
#endif
|
||||
tournaments_timer_.async_wait([this](const boost::system::error_code& ec) { refresh_tournaments(ec); });
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue