mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-08 22:08:00 +00:00
libtorrent fix from upstream
This commit is contained in:
parent
36da093939
commit
9aec1f6c73
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user