Makes opening a port stop after first successful try.
This commit is contained in:
parent
bd5ebdb2de
commit
ea47c47b5e
1 changed files with 1 additions and 0 deletions
|
@ -294,6 +294,7 @@ def _communicate_with_igd(port=15441,
|
||||||
try:
|
try:
|
||||||
_orchestrate_soap_request(local_ip, port, fn, desc)
|
_orchestrate_soap_request(local_ip, port, fn, desc)
|
||||||
success = True
|
success = True
|
||||||
|
break
|
||||||
except (UpnpError, IGDError) as e:
|
except (UpnpError, IGDError) as e:
|
||||||
logging.debug('Upnp request using "{0}" failed: {1}'.format(
|
logging.debug('Upnp request using "{0}" failed: {1}'.format(
|
||||||
local_ip, e))
|
local_ip, e))
|
||||||
|
|
Loading…
Reference in a new issue