aboutsummaryrefslogtreecommitdiff
path: root/Mono.Nat/Pmp/PmpNatDevice.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Mono.Nat/Pmp/PmpNatDevice.cs')
-rw-r--r--Mono.Nat/Pmp/PmpNatDevice.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mono.Nat/Pmp/PmpNatDevice.cs b/Mono.Nat/Pmp/PmpNatDevice.cs
index adb08fce3..93007cb8a 100644
--- a/Mono.Nat/Pmp/PmpNatDevice.cs
+++ b/Mono.Nat/Pmp/PmpNatDevice.cs
@@ -172,7 +172,10 @@ namespace Mono.Nat.Pmp
"Out of resources (NAT box cannot create any more mappings at this time)",
"Unsupported opcode"
};
- throw new MappingException(resultCode, errors[resultCode]);
+
+ var errorMsg = errors[resultCode];
+ NatUtility.Log("Error in CreatePortMapListen: " + errorMsg);
+ return;
}
if (lifetime == 0) return; //mapping was deleted