|
|
@ -7000,7 +7000,10 @@ namespace libtorrent |
|
|
|
m_graceful_pause_mode = graceful; |
|
|
|
m_graceful_pause_mode = graceful; |
|
|
|
|
|
|
|
|
|
|
|
if (!m_ses.is_paused() || (prev_graceful && !m_graceful_pause_mode)) |
|
|
|
if (!m_ses.is_paused() || (prev_graceful && !m_graceful_pause_mode)) |
|
|
|
|
|
|
|
{ |
|
|
|
do_pause(); |
|
|
|
do_pause(); |
|
|
|
|
|
|
|
m_ses.trigger_auto_manage(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void torrent::do_pause() |
|
|
|
void torrent::do_pause() |
|
|
@ -7090,10 +7093,6 @@ namespace libtorrent |
|
|
|
set_state(torrent_status::queued_for_checking); |
|
|
|
set_state(torrent_status::queued_for_checking); |
|
|
|
TORRENT_ASSERT(!m_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 |
|
|
|
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING || defined TORRENT_LOGGING |
|
|
|