From: Felix Domke Date: Tue, 25 Jul 2006 18:47:38 +0000 (+0000) Subject: add comment X-Git-Tag: 2.6.0~3115 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/17d1a4de40232188973fa1de804e2b11fe35cd39?ds=sidebyside add comment --- diff --git a/lib/python/Components/Element.py b/lib/python/Components/Element.py index 54a1cc25..880274b4 100644 --- a/lib/python/Components/Element.py +++ b/lib/python/Components/Element.py @@ -29,7 +29,9 @@ class Element: # we should not disconnect from upstream if # there are still elements depending on us. assert len(self.downstream_elements) == 0, "there are still downstream elements left" - if self.source: + + # Sources don't have a source themselves. don't do anything here. + if self.source is not None: self.source.disconnectDownstream(self) def disconnectDownstream(self, downstream):