mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +00:00
lt storage fix
This commit is contained in:
parent
5907bf254f
commit
8093185a4b
1 changed files with 8 additions and 10 deletions
|
@ -1612,12 +1612,16 @@ namespace libtorrent
|
||||||
{
|
{
|
||||||
m_unallocated_slots.push_back(i);
|
m_unallocated_slots.push_back(i);
|
||||||
}
|
}
|
||||||
|
if (m_unallocated_slots.empty())
|
||||||
if (m_compact_mode || m_unallocated_slots.empty())
|
|
||||||
{
|
{
|
||||||
m_state = state_finished;
|
m_state = state_finished;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (m_compact_mode)
|
||||||
|
{
|
||||||
|
m_state = state_create_files;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_current_slot = 0;
|
m_current_slot = 0;
|
||||||
|
@ -1662,15 +1666,9 @@ namespace libtorrent
|
||||||
|
|
||||||
if (m_state == state_allocating)
|
if (m_state == state_allocating)
|
||||||
{
|
{
|
||||||
if (m_compact_mode)
|
if (m_compact_mode || m_unallocated_slots.empty())
|
||||||
{
|
{
|
||||||
m_state = state_finished;
|
m_state = state_create_files;
|
||||||
return std::make_pair(true, 1.f);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_unallocated_slots.empty())
|
|
||||||
{
|
|
||||||
m_state = state_finished;
|
|
||||||
return std::make_pair(true, 1.f);
|
return std::make_pair(true, 1.f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue