forked from premiere/premiere-libtorrent
removed asserts that are can no longer be maintained with the async io
This commit is contained in:
parent
97099dc0ca
commit
bbaa2efcb0
|
@ -456,13 +456,11 @@ namespace libtorrent
|
|||
alert_manager& alerts() const;
|
||||
piece_picker& picker()
|
||||
{
|
||||
assert(!is_seed());
|
||||
assert(m_picker.get());
|
||||
return *m_picker;
|
||||
}
|
||||
bool has_picker() const
|
||||
{
|
||||
assert((m_storage && !is_seed()) == bool(m_picker.get() != 0));
|
||||
return m_picker.get() != 0;
|
||||
}
|
||||
policy& get_policy()
|
||||
|
|
|
@ -2771,7 +2771,6 @@ namespace libtorrent
|
|||
}
|
||||
else if (st.total_wanted_done == st.total_wanted)
|
||||
{
|
||||
assert(st.total_done != m_torrent_file.total_size());
|
||||
st.state = torrent_status::finished;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue