mirror of
https://github.com/LBRYFoundation/hub.git
synced 2025-08-23 17:37:23 +00:00
uncaught error
This commit is contained in:
parent
a5b0b758b9
commit
9ff6ffcf42
1 changed files with 4 additions and 1 deletions
|
@ -1372,7 +1372,10 @@ class LBRYElectrumX(asyncio.Protocol):
|
||||||
|
|
||||||
async def hashX_unsubscribe(self, hashX, alias):
|
async def hashX_unsubscribe(self, hashX, alias):
|
||||||
sessions = self.session_manager.hashx_subscriptions_by_session[hashX]
|
sessions = self.session_manager.hashx_subscriptions_by_session[hashX]
|
||||||
sessions.remove(id(self))
|
try:
|
||||||
|
sessions.remove(id(self))
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
if not sessions:
|
if not sessions:
|
||||||
self.hashX_subs.pop(hashX, None)
|
self.hashX_subs.pop(hashX, None)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue