forked from premiere/premiere-libtorrent
exit natpmp::on_reply earlier if we're shutting down
This commit is contained in:
parent
b91c595b43
commit
48980896d5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue