forked from premiere/premiere-libtorrent
fixed missing torrent error state
This commit is contained in:
parent
722e9e95e3
commit
66a7f98d84
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue