libtorrent fix from upstream

This commit is contained in:
Miguel Freitas 2013-11-25 23:22:59 -02:00
parent 36da093939
commit 9aec1f6c73

View File

@ -7000,7 +7000,10 @@ namespace libtorrent
m_graceful_pause_mode = graceful;
if (!m_ses.is_paused() || (prev_graceful && !m_graceful_pause_mode))
{
do_pause();
m_ses.trigger_auto_manage();
}
}
void torrent::do_pause()
@ -7090,11 +7093,7 @@ namespace libtorrent
set_state(torrent_status::queued_for_checking);
TORRENT_ASSERT(!m_queued_for_checking);
}
// if this torrent was just paused
// we might have to resume some other auto-managed torrent
m_ses.trigger_auto_manage();
}
}
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING || defined TORRENT_LOGGING
void torrent::log_to_all_peers(char const* message)