diff --git a/src/natpmp.cpp b/src/natpmp.cpp index 55b274774..9fbe3182d 100644 --- a/src/natpmp.cpp +++ b/src/natpmp.cpp @@ -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;