*** empty log message ***
This commit is contained in:
@@ -192,14 +192,22 @@ namespace libtorrent
|
||||
{
|
||||
boost::mutex::scoped_lock l(m_ses->m_mutex);
|
||||
torrent* t = m_ses->find_torrent(m_info_hash);
|
||||
if (t != 0) t->set_tracker_login(name, password);
|
||||
if (t != 0)
|
||||
{
|
||||
t->set_tracker_login(name, password);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_chk)
|
||||
{
|
||||
boost::mutex::scoped_lock l(m_chk->m_mutex);
|
||||
detail::piece_checker_data* d = m_chk->find_torrent(m_info_hash);
|
||||
if (d != 0) d->torrent_ptr->set_tracker_login(name, password);
|
||||
if (d != 0)
|
||||
{
|
||||
d->torrent_ptr->set_tracker_login(name, password);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
throw invalid_handle();
|
||||
@@ -459,8 +467,8 @@ namespace libtorrent
|
||||
p.total_download = statistics.total_payload_download();
|
||||
p.total_upload = statistics.total_payload_upload();
|
||||
|
||||
p.upload_limit = peer->upload_bandwidth.given;
|
||||
p.upload_ceiling = peer->upload_bandwidth.wanted;
|
||||
p.upload_limit = peer->send_quota();
|
||||
p.upload_ceiling = peer->send_quota_limit();
|
||||
|
||||
p.load_balancing = peer->total_free_upload();
|
||||
|
||||
|
Reference in New Issue
Block a user