Another guard around sampling subscriber popped race..
parent
9fd412f631
commit
1e683a4b91
|
@ -366,7 +366,12 @@ async def register_with_sampler(
|
||||||
sub_for_broadcasts
|
sub_for_broadcasts
|
||||||
and subs
|
and subs
|
||||||
):
|
):
|
||||||
subs.remove(stream)
|
try:
|
||||||
|
subs.remove(stream)
|
||||||
|
except KeyError:
|
||||||
|
log.warning(
|
||||||
|
f'{stream._ctx.chan.uid} sub already removed!?'
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
# if no shms are passed in we just wait until cancelled
|
# if no shms are passed in we just wait until cancelled
|
||||||
# by caller.
|
# by caller.
|
||||||
|
|
Loading…
Reference in New Issue