fixed bug in client_test

This commit is contained in:
Arvid Norberg
2007-10-02 18:52:27 +00:00
parent 16886741d0
commit 18a87916e6

View File

@@ -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++);
} }
} }