udp_socket fix

This commit is contained in:
Arvid Norberg 2008-03-29 04:38:00 +00:00
parent 40824d2bb1
commit c3e1b01e8d
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,8 @@ void udp_socket::send(udp::endpoint const& ep, char const* p, int len, asio::err
void udp_socket::on_read(udp::socket* s, asio::error_code const& e, std::size_t bytes_transferred)
{
if (!m_callback) return;
if (e)
{
#ifndef BOOST_NO_EXCEPTIONS
@ -70,7 +72,6 @@ void udp_socket::on_read(udp::socket* s, asio::error_code const& e, std::size_t
return;
}
if (!m_callback) return;
if (s == &m_ipv4_sock)
{