forked from premiere/premiere-libtorrent
fixed bug in client_test
This commit is contained in:
parent
16886741d0
commit
18a87916e6
|
@ -499,7 +499,7 @@ void scan_dir(path const& dir_path
|
||||||
torrent_handle& h = i->second;
|
torrent_handle& h = i->second;
|
||||||
if (!h.is_valid())
|
if (!h.is_valid())
|
||||||
{
|
{
|
||||||
handles.erase(i);
|
handles.erase(i++);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -514,7 +514,7 @@ void scan_dir(path const& dir_path
|
||||||
bencode(std::ostream_iterator<char>(out), data);
|
bencode(std::ostream_iterator<char>(out), data);
|
||||||
}
|
}
|
||||||
ses.remove_torrent(h);
|
ses.remove_torrent(h);
|
||||||
handles.erase(i);
|
handles.erase(i++);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue