another miniupnpc fallback bug
This commit is contained in:
parent
cab039a9db
commit
576734d2cc
3 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
__version__ = "0.0.1a8"
|
__version__ = "0.0.1a9"
|
||||||
__name__ = "txupnp"
|
__name__ = "txupnp"
|
||||||
__author__ = "Jack Robison"
|
__author__ = "Jack Robison"
|
||||||
__maintainer__ = "Jack Robison"
|
__maintainer__ = "Jack Robison"
|
||||||
|
|
|
@ -35,7 +35,7 @@ class SOAPServiceManager(object):
|
||||||
elif 'st' not in server_info:
|
elif 'st' not in server_info:
|
||||||
log.error("don't know how to handle gateway: %s", server_info)
|
log.error("don't know how to handle gateway: %s", server_info)
|
||||||
continue
|
continue
|
||||||
defer.returnValue(len(self._command_runners))
|
defer.returnValue(len(self._command_runners) > 0)
|
||||||
|
|
||||||
def set_runner(self, urn):
|
def set_runner(self, urn):
|
||||||
if urn not in self._command_runners:
|
if urn not in self._command_runners:
|
||||||
|
|
|
@ -51,8 +51,7 @@ class UPnP(object):
|
||||||
log.warning("nothing left to try")
|
log.warning("nothing left to try")
|
||||||
if try_txupnp:
|
if try_txupnp:
|
||||||
try:
|
try:
|
||||||
yield self.soap_manager.discover_services(timeout=timeout, max_devices=max_devices)
|
found = yield self.soap_manager.discover_services(timeout=timeout, max_devices=max_devices)
|
||||||
found = True
|
|
||||||
except defer.TimeoutError:
|
except defer.TimeoutError:
|
||||||
found = False
|
found = False
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue