fix natpmp stall at shutdown
This commit is contained in:
parent
ca0f17ee95
commit
148640f1ac
|
@ -281,6 +281,7 @@ void natpmp::send_map_request(int i)
|
||||||
void natpmp::resend_request(int i, error_code const& e)
|
void natpmp::resend_request(int i, error_code const& e)
|
||||||
{
|
{
|
||||||
if (e) return;
|
if (e) return;
|
||||||
|
if (m_abort) return;
|
||||||
|
|
||||||
mutex_t::scoped_lock l(m_mutex);
|
mutex_t::scoped_lock l(m_mutex);
|
||||||
if (m_currently_mapping != i) return;
|
if (m_currently_mapping != i) return;
|
||||||
|
|
Loading…
Reference in New Issue