*** empty log message ***

This commit is contained in:
Arvid Norberg 2004-09-16 12:12:36 +00:00
parent 579d63f49d
commit a282a51c4d
2 changed files with 2 additions and 5 deletions

View File

@ -115,10 +115,7 @@ namespace libtorrent
// loop in session_impl will check for this state
// on all torrents once every second, and take
// the necessary actions then.
void abort()
{
m_abort = true; m_event = tracker_request::stopped;
}
void abort() { m_abort = true; m_event = tracker_request::stopped; }
bool is_aborted() const { return m_abort; }
// is called every second by session. This will

View File

@ -1223,7 +1223,7 @@ namespace libtorrent
{
boost::mutex::scoped_lock lock(mutex);
data.progress = (float)current_slot / m_info.num_pieces();
if (data.abort || data.torrent_ptr->is_aborted())
if (data.abort || (data.torrent_ptr && data.torrent_ptr->is_aborted()))
return;
}
}