make sure upnp is neither set nor unset if upnp is disabled

This commit is contained in:
Jimmy Kiselak 2015-11-19 23:20:17 -05:00
parent e4c2585e23
commit 7a3bdf93e9

View file

@ -148,6 +148,7 @@ class LBRYSession(object):
ds.append(defer.maybeDeferred(self.wallet.stop))
if self.blob_manager is not None:
ds.append(defer.maybeDeferred(self.blob_manager.stop))
if self.use_upnp is True:
ds.append(defer.maybeDeferred(self._unset_upnp))
return defer.DeferredList(ds)