forked from LBRYCommunity/lbry-sdk
make sure upnp is neither set nor unset if upnp is disabled
This commit is contained in:
parent
e4c2585e23
commit
7a3bdf93e9
1 changed files with 2 additions and 1 deletions
|
@ -148,7 +148,8 @@ class LBRYSession(object):
|
||||||
ds.append(defer.maybeDeferred(self.wallet.stop))
|
ds.append(defer.maybeDeferred(self.wallet.stop))
|
||||||
if self.blob_manager is not None:
|
if self.blob_manager is not None:
|
||||||
ds.append(defer.maybeDeferred(self.blob_manager.stop))
|
ds.append(defer.maybeDeferred(self.blob_manager.stop))
|
||||||
ds.append(defer.maybeDeferred(self._unset_upnp))
|
if self.use_upnp is True:
|
||||||
|
ds.append(defer.maybeDeferred(self._unset_upnp))
|
||||||
return defer.DeferredList(ds)
|
return defer.DeferredList(ds)
|
||||||
|
|
||||||
def _try_upnp(self):
|
def _try_upnp(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue