diff --git a/src/ip_notifier.cpp b/src/ip_notifier.cpp index 37e5623..daa25f8 100644 --- a/src/ip_notifier.cpp +++ b/src/ip_notifier.cpp @@ -380,7 +380,7 @@ struct ip_change_notifier_impl final : ip_change_notifier } else { - m_hnd.get_io_service().post([cb, err]() + lt::get_io_service(m_hnd).post([cb, err]() { cb(error_code(err, system_category())); }); } }