From c3917c61d3d70694391327b3f3bc64de1b6cbc01 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Tue, 28 Sep 2021 17:46:18 +0200 Subject: [PATCH] fix audio compression switching --- csdr/chain/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csdr/chain/__init__.py b/csdr/chain/__init__.py index 99fe821..b9af86a 100644 --- a/csdr/chain/__init__.py +++ b/csdr/chain/__init__.py @@ -115,7 +115,7 @@ class Chain(Module): removedWorker.stop() if index == 0: - if self.reader is not None: + if self.reader is not None and len(self.workers): self.workers[0].setReader(self.reader) elif index == len(self.workers): if self.writer is not None: