current_tracker now also indicates which tracker is being tried. fixes #404
This commit is contained in:
parent
93a0103746
commit
294e62a4c3
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
* if there is no working tracker, current_tracker is the
|
||||||
|
tracker that is currently being tried
|
||||||
* torrents that are checking can now be paused, which will
|
* torrents that are checking can now be paused, which will
|
||||||
pause the checking
|
pause the checking
|
||||||
* introduced another torrent state, checking_resume_data, which
|
* introduced another torrent state, checking_resume_data, which
|
||||||
|
|
|
@ -4636,9 +4636,16 @@ namespace libtorrent
|
||||||
|
|
||||||
if (m_last_working_tracker >= 0)
|
if (m_last_working_tracker >= 0)
|
||||||
{
|
{
|
||||||
|
TORRENT_ASSERT(m_last_working_tracker < m_trackers.size());
|
||||||
st.current_tracker
|
st.current_tracker
|
||||||
= m_trackers[m_last_working_tracker].url;
|
= m_trackers[m_last_working_tracker].url;
|
||||||
}
|
}
|
||||||
|
else if (m_currently_trying_tracker >= 0)
|
||||||
|
{
|
||||||
|
TORRENT_ASSERT(m_currently_trying_tracker < m_trackers.size());
|
||||||
|
st.current_tracker
|
||||||
|
= m_trackers[m_currently_trying_tracker].url;
|
||||||
|
}
|
||||||
|
|
||||||
st.num_uploads = m_num_uploads;
|
st.num_uploads = m_num_uploads;
|
||||||
st.uploads_limit = m_max_uploads;
|
st.uploads_limit = m_max_uploads;
|
||||||
|
|
Loading…
Reference in New Issue