From 90b55ef277525922dd4a9495efb984a18d02a8d9 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Tue, 11 Feb 2025 13:06:44 +0100 Subject: [PATCH] use None (bsread.source default) if channels are empty --- bstrd/bscache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bstrd/bscache.py b/bstrd/bscache.py index 3a77978..39d7f9f 100644 --- a/bstrd/bscache.py +++ b/bstrd/bscache.py @@ -35,7 +35,7 @@ class BSCache: def run(self, running): timeout_counter = 0 - configs = self.channels.values() + configs = self.channels.values() or None with source(channels=configs, **self.kwargs) as src: while running.is_set(): msg = src.receive()