Another guard around sampling subscriber popped race..

basic_buy_bot
Tyler Goodlet 2023-06-06 13:13:26 -04:00
parent 9fd412f631
commit 1e683a4b91
1 changed files with 6 additions and 1 deletions

View File

@ -366,7 +366,12 @@ async def register_with_sampler(
sub_for_broadcasts
and subs
):
subs.remove(stream)
try:
subs.remove(stream)
except KeyError:
log.warning(
f'{stream._ctx.chan.uid} sub already removed!?'
)
else:
# if no shms are passed in we just wait until cancelled
# by caller.