diff --git a/piker/data/_sampling.py b/piker/data/_sampling.py index b5a75a67..2098d593 100644 --- a/piker/data/_sampling.py +++ b/piker/data/_sampling.py @@ -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