fixed bug in client_test

This commit is contained in:
Arvid Norberg 2007-10-02 18:52:27 +00:00
parent 16886741d0
commit 18a87916e6
1 changed files with 2 additions and 2 deletions

View File

@ -499,7 +499,7 @@ void scan_dir(path const& dir_path
torrent_handle& h = i->second;
if (!h.is_valid())
{
handles.erase(i);
handles.erase(i++);
continue;
}
@ -514,7 +514,7 @@ void scan_dir(path const& dir_path
bencode(std::ostream_iterator<char>(out), data);
}
ses.remove_torrent(h);
handles.erase(i);
handles.erase(i++);
}
}