If a sample stream is already ded, just warn

incr_update_backup
Tyler Goodlet 2022-04-22 14:06:48 -04:00
parent cde23361a4
commit 04c12a756c
1 changed files with 6 additions and 1 deletions

View File

@ -160,7 +160,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