fix natpmp stall at shutdown

This commit is contained in:
Arvid Norberg 2008-06-24 13:52:14 +00:00
parent ca0f17ee95
commit 148640f1ac
1 changed files with 1 additions and 0 deletions

View File

@ -281,6 +281,7 @@ void natpmp::send_map_request(int i)
void natpmp::resend_request(int i, error_code const& e)
{
if (e) return;
if (m_abort) return;
mutex_t::scoped_lock l(m_mutex);
if (m_currently_mapping != i) return;