fixed missing torrent error state

This commit is contained in:
Arvid Norberg 2008-07-02 21:27:16 +00:00
parent 722e9e95e3
commit 66a7f98d84
2 changed files with 2 additions and 0 deletions

View File

@ -194,6 +194,7 @@ namespace libtorrent
void ip_filter_updated() { m_policy.ip_filter_updated(); }
void set_error(std::string const& msg) { m_error = msg; }
bool has_error() const { return !m_error.empty(); }
void pause();
void resume();

View File

@ -2847,6 +2847,7 @@ namespace libtorrent
{
t->alerts().post_alert(file_error_alert(j.error_file, t->get_handle(), j.str));
}
t->set_error(j.str);
t->pause();
return;
}