Fix error at shutdown

Fixed messy error message that sometimes appeared at shutdown
This commit is contained in:
Jack 2016-01-12 13:41:20 -05:00
parent 905274d6d4
commit ebb495ab8b

View file

@ -267,4 +267,6 @@ class LBRYSession(object):
log.info("Removed UPnP redirect for %s %d.", protocol, port)
self.upnp_redirects = []
return threads.deferToThread(threaded_unset_upnp)
d = threads.deferToThread(threaded_unset_upnp)
d.addErrback(lambda err: str(err))
return d