udp_socket fix

This commit is contained in:
Arvid Norberg 2009-05-31 23:48:24 +00:00
parent bd33814376
commit a061592619
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ void udp_socket::on_read(udp::socket* s, error_code const& e, std::size_t bytes_
TORRENT_ASSERT(m_outstanding > 0);
--m_outstanding;
if (e == asio::error::operation_aborted)
if (e == asio::error::operation_aborted || m_abort)
{
if (m_outstanding == 0)
{