fixed a bug in client_test. fixed some problems related to the previous buffer bug fix. all tests pass now.

This commit is contained in:
Arvid Norberg
2006-04-30 10:28:45 +00:00
parent 18cb6736ea
commit d63ceac56c
4 changed files with 27 additions and 21 deletions

View File

@@ -724,15 +724,19 @@ int main(int ac, char* av[])
std::stringstream out;
for (handles_t::iterator i = handles.begin();
i != handles.end(); ++i)
i != handles.end();)
{
torrent_handle& h = i->second;
if (!h.is_valid())
{
handles.erase(i);
--i;
handles.erase(i++);
continue;
}
else
{
++i;
}
out << "name: " << esc("37");
if (h.has_metadata()) out << h.get_torrent_info().name();
else out << "-";