fix storage tick invariant check failure
This commit is contained in:
parent
56925ee8f3
commit
9d645055ff
|
@ -10295,11 +10295,14 @@ namespace libtorrent
|
||||||
if (m_storage_tick > 0 && is_loaded())
|
if (m_storage_tick > 0 && is_loaded())
|
||||||
{
|
{
|
||||||
--m_storage_tick;
|
--m_storage_tick;
|
||||||
if (m_storage_tick == 0 && m_storage)
|
if (m_storage_tick == 0)
|
||||||
{
|
{
|
||||||
m_ses.disk_thread().async_tick_torrent(&storage()
|
if (m_storage)
|
||||||
, boost::bind(&torrent::on_disk_tick_done
|
{
|
||||||
, shared_from_this(), _1));
|
m_ses.disk_thread().async_tick_torrent(&storage()
|
||||||
|
, boost::bind(&torrent::on_disk_tick_done
|
||||||
|
, shared_from_this(), _1));
|
||||||
|
}
|
||||||
update_want_tick();
|
update_want_tick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue