If a sample stream is already ded, just warn

pre_flow
Tyler Goodlet 2022-04-22 14:06:48 -04:00
parent 45c5725d61
commit c69be8b599
1 changed files with 6 additions and 1 deletions

View File

@ -168,7 +168,12 @@ async def broadcast(
log.error( log.error(
f'{stream._ctx.chan.uid} dropped connection' f'{stream._ctx.chan.uid} dropped connection'
) )
try:
subs.remove(stream) subs.remove(stream)
except ValueError:
log.warning(
f'{stream._ctx.chan.uid} sub already removed!?'
)
@tractor.context @tractor.context