fixed missing torrent error state
This commit is contained in:
@@ -194,6 +194,7 @@ namespace libtorrent
|
|||||||
|
|
||||||
void ip_filter_updated() { m_policy.ip_filter_updated(); }
|
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(); }
|
bool has_error() const { return !m_error.empty(); }
|
||||||
void pause();
|
void pause();
|
||||||
void resume();
|
void resume();
|
||||||
|
@@ -2847,6 +2847,7 @@ namespace libtorrent
|
|||||||
{
|
{
|
||||||
t->alerts().post_alert(file_error_alert(j.error_file, t->get_handle(), j.str));
|
t->alerts().post_alert(file_error_alert(j.error_file, t->get_handle(), j.str));
|
||||||
}
|
}
|
||||||
|
t->set_error(j.str);
|
||||||
t->pause();
|
t->pause();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user