mirror of
https://github.com/monero-project/monero.git
synced 2025-08-09 16:32:26 -04:00
Fix build with boost ASIO 1.87. Support boost 1.66+
This commit is contained in:
parent
2e8a128c75
commit
4344f97255
37 changed files with 397 additions and 375 deletions
|
@ -189,7 +189,7 @@ namespace
|
|||
if (0 < count)
|
||||
{
|
||||
// Perhaps not all connections were closed, try to close it after 7 seconds
|
||||
boost::shared_ptr<boost::asio::deadline_timer> sh_deadline(new boost::asio::deadline_timer(m_tcp_server.get_io_service(), boost::posix_time::seconds(7)));
|
||||
boost::shared_ptr<boost::asio::deadline_timer> sh_deadline(new boost::asio::deadline_timer(m_tcp_server.get_io_context(), boost::posix_time::seconds(7)));
|
||||
sh_deadline->async_wait([=](const boost::system::error_code& ec)
|
||||
{
|
||||
boost::shared_ptr<boost::asio::deadline_timer> t = sh_deadline; // Capture sh_deadline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue