fixed missing 'set_error' when write failed

This commit is contained in:
Arvid Norberg 2008-08-26 23:10:42 +00:00
parent af62dc1417
commit 238dcea91d
1 changed files with 1 additions and 2 deletions

View File

@ -1706,9 +1706,8 @@ namespace libtorrent
}
if (t->alerts().should_post<file_error_alert>())
{
t->alerts().post_alert(file_error_alert(j.error_file, t->get_handle(), j.str));
}
t->set_error(j.str);
t->pause();
return;
}