exit natpmp::on_reply earlier if we're shutting down

This commit is contained in:
arvidn 2018-11-13 11:00:18 +01:00 committed by Arvid Norberg
parent b91c595b43
commit 48980896d5
1 changed files with 2 additions and 2 deletions

View File

@ -430,6 +430,8 @@ void natpmp::on_reply(error_code const& e
return;
}
if (m_abort) return;
#if defined TORRENT_ASIO_DEBUGGING
add_outstanding_async("natpmp::on_reply");
#endif
@ -582,8 +584,6 @@ void natpmp::on_reply(error_code const& e
l.lock();
}
if (m_abort) return;
m_currently_mapping = -1;
m->action = mapping_t::action_none;
m_send_timer.cancel(ec);