use None (bsread.source default) if channels are empty
This commit is contained in:
@ -35,7 +35,7 @@ class BSCache:
|
|||||||
|
|
||||||
def run(self, running):
|
def run(self, running):
|
||||||
timeout_counter = 0
|
timeout_counter = 0
|
||||||
configs = self.channels.values()
|
configs = self.channels.values() or None
|
||||||
with source(channels=configs, **self.kwargs) as src:
|
with source(channels=configs, **self.kwargs) as src:
|
||||||
while running.is_set():
|
while running.is_set():
|
||||||
msg = src.receive()
|
msg = src.receive()
|
||||||
|
Reference in New Issue
Block a user