Makes opening a port stop after first successful try.

This commit is contained in:
sirMackk 2016-09-29 15:24:46 +02:00
parent bd5ebdb2de
commit ea47c47b5e
1 changed files with 1 additions and 0 deletions

View File

@ -294,6 +294,7 @@ def _communicate_with_igd(port=15441,
try:
_orchestrate_soap_request(local_ip, port, fn, desc)
success = True
break
except (UpnpError, IGDError) as e:
logging.debug('Upnp request using "{0}" failed: {1}'.format(
local_ip, e))