bugfix in client_test

This commit is contained in:
Arvid Norberg 2008-05-29 02:21:22 +00:00
parent fd98434c97
commit 0a27b0a2ce
1 changed files with 1 additions and 1 deletions

View File

@ -1174,6 +1174,7 @@ int main(int ac, char* av[])
else if (save_resume_data_alert* p = dynamic_cast<save_resume_data_alert*>(a.get()))
{
torrent_handle h = p->handle;
event_string << "(" << h.name() << ") " << p->msg();
if (p->resume_data)
{
boost::filesystem::ofstream out(h.save_path() / (h.name() + ".fastresume"), std::ios_base::binary);
@ -1181,7 +1182,6 @@ int main(int ac, char* av[])
bencode(std::ostream_iterator<char>(out), *p->resume_data);
if (h.is_paused()) ses.remove_torrent(h);
}
event_string << "(" << h.name() << ") " << p->msg();
}
else if (torrent_alert* p = dynamic_cast<torrent_alert*>(a.get()))
{