forked from LBRYCommunity/lbry-sdk
Fix error at shutdown
Fixed messy error message that sometimes appeared at shutdown
This commit is contained in:
parent
905274d6d4
commit
ebb495ab8b
1 changed files with 3 additions and 1 deletions
|
@ -267,4 +267,6 @@ class LBRYSession(object):
|
||||||
log.info("Removed UPnP redirect for %s %d.", protocol, port)
|
log.info("Removed UPnP redirect for %s %d.", protocol, port)
|
||||||
self.upnp_redirects = []
|
self.upnp_redirects = []
|
||||||
|
|
||||||
return threads.deferToThread(threaded_unset_upnp)
|
d = threads.deferToThread(threaded_unset_upnp)
|
||||||
|
d.addErrback(lambda err: str(err))
|
||||||
|
return d
|
Loading…
Reference in a new issue