Revise torrent state update
* Remove unused m_in_state_updates * Update m_state_subscription comments
This commit is contained in:
parent
cc93f8f3a7
commit
fa03cbea9b
|
@ -260,8 +260,8 @@ namespace libtorrent
|
|||
// m_allow_peers is also false.
|
||||
bool m_graceful_pause_mode:1;
|
||||
|
||||
// state subscription. If set, a pointer to this torrent
|
||||
// will be added to the m_state_updates set in session_impl
|
||||
// state subscription. If set, a pointer to this torrent will be added
|
||||
// to the session_impl::m_torrent_lists[torrent_state_updates]
|
||||
// whenever this torrent's state changes (any state).
|
||||
bool m_state_subscription:1;
|
||||
|
||||
|
@ -1625,16 +1625,10 @@ namespace libtorrent
|
|||
// is optional and may be 0xffffff
|
||||
boost::uint32_t m_incomplete:24;
|
||||
|
||||
|
||||
// true when the torrent should announce to
|
||||
// the DHT
|
||||
bool m_announce_to_dht:1;
|
||||
|
||||
// in state_updates list. When adding a torrent to the
|
||||
// session_impl's m_state_update list, this bit is set
|
||||
// to never add the same torrent twice
|
||||
bool m_in_state_updates:1;
|
||||
|
||||
// these represent whether or not this torrent is counted
|
||||
// in the total counters of active seeds and downloads
|
||||
// in the session.
|
||||
|
|
|
@ -276,7 +276,6 @@ namespace libtorrent
|
|||
, m_padding(0)
|
||||
, m_incomplete(0xffffff)
|
||||
, m_announce_to_dht((p.flags & add_torrent_params::flag_paused) == 0)
|
||||
, m_in_state_updates(false)
|
||||
, m_is_active_download(false)
|
||||
, m_is_active_finished(false)
|
||||
, m_ssl_torrent(false)
|
||||
|
|
Loading…
Reference in New Issue