forked from premiere/premiere-libtorrent
revert redundant wrapping some function calls with error handlers. Error handling is already built into the handler allocator
This commit is contained in:
parent
6ba64a1bb3
commit
1884061418
|
@ -5651,8 +5651,7 @@ namespace libtorrent {
|
||||||
|
|
||||||
auto conn = self();
|
auto conn = self();
|
||||||
m_socket->async_write_some(vec, make_handler(
|
m_socket->async_write_some(vec, make_handler(
|
||||||
[conn](error_code const& ec, std::size_t bt)
|
std::bind(&peer_connection::on_send_data, conn, _1, _2)
|
||||||
{ conn->wrap(&peer_connection::on_send_data, ec, bt); }
|
|
||||||
, m_write_handler_storage, *this));
|
, m_write_handler_storage, *this));
|
||||||
|
|
||||||
m_channel_state[upload_channel] |= peer_info::bw_network;
|
m_channel_state[upload_channel] |= peer_info::bw_network;
|
||||||
|
@ -5739,8 +5738,7 @@ namespace libtorrent {
|
||||||
auto conn = self();
|
auto conn = self();
|
||||||
m_socket->async_read_some(
|
m_socket->async_read_some(
|
||||||
boost::asio::mutable_buffers_1(vec.data(), vec.size()), make_handler(
|
boost::asio::mutable_buffers_1(vec.data(), vec.size()), make_handler(
|
||||||
[conn](error_code const& ec, std::size_t bt)
|
std::bind(&peer_connection::on_receive_data, conn, _1, _2)
|
||||||
{ conn->wrap(&peer_connection::on_receive_data, ec, bt); }
|
|
||||||
, m_read_handler_storage, *this));
|
, m_read_handler_storage, *this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue