fix iterator issue in client_test
This commit is contained in:
parent
4559980c92
commit
92661b2a71
|
@ -1592,10 +1592,10 @@ int main(int argc, char* argv[])
|
|||
, boost::bind(&handles_t::value_type::second, _1) == h);
|
||||
if (i != files.end())
|
||||
{
|
||||
files.erase(i);
|
||||
error_code ec;
|
||||
remove(combine_path(monitor_dir, i->first), ec);
|
||||
if (ec) printf("failed to delete .torrent file: %s\n", ec.message().c_str());
|
||||
files.erase(i);
|
||||
}
|
||||
if (h.is_valid())
|
||||
ses.remove_torrent(h, session::delete_files);
|
||||
|
|
Loading…
Reference in New Issue