current_tracker now also indicates which tracker is being tried. fixes #404

This commit is contained in:
Arvid Norberg 2008-11-26 01:31:54 +00:00
parent 93a0103746
commit 294e62a4c3
2 changed files with 9 additions and 0 deletions

View File

@ -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
pause the checking
* introduced another torrent state, checking_resume_data, which

View File

@ -4636,9 +4636,16 @@ namespace libtorrent
if (m_last_working_tracker >= 0)
{
TORRENT_ASSERT(m_last_working_tracker < m_trackers.size());
st.current_tracker
= 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.uploads_limit = m_max_uploads;