fix shutdown delay issue
This commit is contained in:
parent
c50e8fa628
commit
db65ec2fd3
|
@ -694,6 +694,9 @@ void http_connection::on_write(error_code const& e)
|
||||||
#if defined TORRENT_ASIO_DEBUGGING
|
#if defined TORRENT_ASIO_DEBUGGING
|
||||||
complete_async("http_connection::on_write");
|
complete_async("http_connection::on_write");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (e == asio::error::operation_aborted) return;
|
||||||
|
|
||||||
if (e)
|
if (e)
|
||||||
{
|
{
|
||||||
boost::shared_ptr<http_connection> me(shared_from_this());
|
boost::shared_ptr<http_connection> me(shared_from_this());
|
||||||
|
@ -742,6 +745,8 @@ void http_connection::on_read(error_code const& e
|
||||||
TORRENT_ASSERT(m_download_quota >= 0);
|
TORRENT_ASSERT(m_download_quota >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e == asio::error::operation_aborted) return;
|
||||||
|
|
||||||
// keep ourselves alive even if the callback function
|
// keep ourselves alive even if the callback function
|
||||||
// deletes this object
|
// deletes this object
|
||||||
boost::shared_ptr<http_connection> me(shared_from_this());
|
boost::shared_ptr<http_connection> me(shared_from_this());
|
||||||
|
|
Loading…
Reference in New Issue