diff --git a/include/libtorrent/aux_/session_impl.hpp b/include/libtorrent/aux_/session_impl.hpp index 47016f808..3689a8187 100644 --- a/include/libtorrent/aux_/session_impl.hpp +++ b/include/libtorrent/aux_/session_impl.hpp @@ -509,6 +509,10 @@ namespace libtorrent // port we'll bind the next outgoing socket to int m_next_port; + // the sequence number to assign to the + // next torrent that's added + int m_torrent_sequence; + #ifndef TORRENT_DISABLE_DHT boost::intrusive_ptr m_dht; dht_settings m_dht_settings; @@ -522,10 +526,6 @@ namespace libtorrent // but for the udp port used by the DHT. int m_external_udp_port; - // the sequence number to assign to the - // next torrent that's added - int m_torrent_sequence; - udp_socket m_dht_socket; void on_receive_udp(asio::error_code const& e diff --git a/src/session_impl.cpp b/src/session_impl.cpp index ae07a940a..0a68547ea 100755 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -164,10 +164,10 @@ namespace aux { , m_disconnect_time_scaler(90) , m_incoming_connection(false) , m_last_tick(time_now()) + , m_torrent_sequence(0) #ifndef TORRENT_DISABLE_DHT , m_dht_same_port(true) , m_external_udp_port(0) - , m_torrent_sequence(0) , m_dht_socket(m_io_service, bind(&session_impl::on_receive_udp, this, _1, _2, _3, _4) , m_half_open) #endif