use None (bsread.source default) if channels are empty

This commit is contained in:
2025-02-11 13:06:44 +01:00
parent 38b5def8f9
commit 90b55ef277

View File

@ -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()