another miniupnpc fallback bug

This commit is contained in:
Jack Robison 2018-08-07 19:02:56 -04:00
parent cab039a9db
commit 576734d2cc
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
3 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,4 @@
__version__ = "0.0.1a8"
__version__ = "0.0.1a9"
__name__ = "txupnp"
__author__ = "Jack Robison"
__maintainer__ = "Jack Robison"

View file

@ -35,7 +35,7 @@ class SOAPServiceManager(object):
elif 'st' not in server_info:
log.error("don't know how to handle gateway: %s", server_info)
continue
defer.returnValue(len(self._command_runners))
defer.returnValue(len(self._command_runners) > 0)
def set_runner(self, urn):
if urn not in self._command_runners:

View file

@ -51,8 +51,7 @@ class UPnP(object):
log.warning("nothing left to try")
if try_txupnp:
try:
yield self.soap_manager.discover_services(timeout=timeout, max_devices=max_devices)
found = True
found = yield self.soap_manager.discover_services(timeout=timeout, max_devices=max_devices)
except defer.TimeoutError:
found = False
finally: