fixed bug in set_queue_position. Fixes #353
This commit is contained in:
parent
0f0ea269bc
commit
a60b6f9e96
|
@ -3420,7 +3420,7 @@ namespace libtorrent
|
|||
session_impl::torrent_map& torrents = m_ses.m_torrents;
|
||||
if (p >= 0 && m_sequence_number == -1)
|
||||
{
|
||||
int max_seq = 0;
|
||||
int max_seq = -1;
|
||||
for (session_impl::torrent_map::iterator i = torrents.begin()
|
||||
, end(torrents.end()); i != end; ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue