diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index e72239abc..d2a41f5e8 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -1706,9 +1706,8 @@ namespace libtorrent } if (t->alerts().should_post()) - { t->alerts().post_alert(file_error_alert(j.error_file, t->get_handle(), j.str)); - } + t->set_error(j.str); t->pause(); return; }