uncaught error

This commit is contained in:
Jack Robison 2022-03-17 23:01:26 -04:00
parent a5b0b758b9
commit 9ff6ffcf42
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -1372,7 +1372,10 @@ class LBRYElectrumX(asyncio.Protocol):
async def hashX_unsubscribe(self, hashX, alias):
sessions = self.session_manager.hashx_subscriptions_by_session[hashX]
try:
sessions.remove(id(self))
except KeyError:
pass
if not sessions:
self.hashX_subs.pop(hashX, None)