feat: allow natpmp to recover from errors

This commit is contained in:
Yat Ho 2024-03-04 16:35:49 +08:00
parent 62c8062bba
commit 1a5671efbd
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ tr_natpmp::PulseResult tr_natpmp::pulse(tr_port local_port, bool is_enabled)
}
}
if (state_ == State::Idle)
if (state_ <= State::Err)
{
if (is_enabled && !is_mapped_ && has_discovered_)
{