Browse Source

libtorrent fix from upstream

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
9aec1f6c73
  1. 7
      libtorrent/src/torrent.cpp

7
libtorrent/src/torrent.cpp

@ -7000,7 +7000,10 @@ namespace libtorrent @@ -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,10 +7093,6 @@ namespace libtorrent @@ -7090,10 +7093,6 @@ 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

Loading…
Cancel
Save