From 6afb0fd51b4ea5a12497a4899ec9c7d943d144df Mon Sep 17 00:00:00 2001 From: "pavel.pimenov" Date: Fri, 31 Mar 2017 10:39:04 +0300 Subject: [PATCH] fix m_host_resolver (for RC_1_1) --- include/libtorrent/aux_/session_impl.hpp | 4 ++-- src/session_impl.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libtorrent/aux_/session_impl.hpp b/include/libtorrent/aux_/session_impl.hpp index b028168e5..ee7ccc17b 100644 --- a/include/libtorrent/aux_/session_impl.hpp +++ b/include/libtorrent/aux_/session_impl.hpp @@ -773,6 +773,8 @@ namespace libtorrent // peer class for local peers peer_class_t m_local_peer_class; + resolver m_host_resolver; + tracker_manager m_tracker_manager; torrent_map m_torrents; @@ -1124,8 +1126,6 @@ namespace libtorrent // time it's called, to force the windows disk cache to be flushed deadline_timer m_close_file_timer; - resolver m_host_resolver; - // the index of the torrent that will be offered to // connect to a peer next time on_tick is called. // This implements a round robin peer connections among diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 0a7d47d12..633a5edf5 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -355,6 +355,7 @@ namespace aux { , m_global_class(0) , m_tcp_peer_class(0) , m_local_peer_class(0) + , m_host_resolver(m_io_service) , m_tracker_manager(m_udp_socket, m_stats_counters, m_host_resolver , m_settings #if !defined TORRENT_DISABLE_LOGGING || TORRENT_USE_ASSERTS @@ -408,7 +409,6 @@ namespace aux { , m_timer(m_io_service) , m_lsd_announce_timer(m_io_service) , m_close_file_timer(m_io_service) - , m_host_resolver(m_io_service) , m_next_downloading_connect_torrent(0) , m_next_finished_connect_torrent(0) , m_download_connect_attempts(0)