If a sample stream is already ded, just warn

m4_corrections
Tyler Goodlet 2022-04-22 14:06:48 -04:00
parent 06f311c182
commit 9042244939
1 changed files with 6 additions and 1 deletions

View File

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