fix issue in udp_socket with unusual socket failure

This commit is contained in:
arvidn 2018-09-27 23:27:29 -07:00 committed by Arvid Norberg
parent 6c4d1b9143
commit a499ace80b
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,4 @@
* fix issue in udp_socket with unusual socket failure
* split progress_notification alert category into file-, piece- and block progress
* utp close-reason fix
* exposed default add_torrent_params flags to python bindings

View File

@ -586,8 +586,10 @@ void udp_socket::setup_read(udp::socket* s)
error_code ec;
boost::system::system_error e(ec);
#endif
get_io_service().post(boost::bind(&udp_socket::on_read
, this, e.code(), s));
on_read_impl(udp::endpoint(), e.code(), 0);
m_abort = true;
close();
return;
}
}