Merge acefbe424cf9d1f05f2d93533790c9ac4e034df8 into fa8aadb591e244b0af677aa88e23823a258bef45

This commit is contained in:
Gabriel Cruz 2026-07-13 13:29:05 -03:00 committed by GitHub
commit b357430b6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ author = "Status Research & Development GmbH"
description = "Nim binding for libplum (PCP, NAT-PMP, UPnP-IGD port mapping)"
license = "Apache License 2.0 or MIT"
installDirs = @["libplum", "vendor"]
installFiles = @["libplum_units.c"]
### Dependencies
requires "nim >= 1.6.0",

View File

@ -243,10 +243,10 @@ proc createMapping*(
try:
# Wait for the signal's single fire (in mappingCallback)
completed = await withTimeout(signal.wait(), timeout)
except CancelledError:
except CancelledError as e:
# The signal was cancelled so it is safe to destroy and reclaim.
await destroyAndReclaim(id, signal)
raise
raise e
if not completed:
# The signal was not fired so it is safe to destroy and reclaim.