aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-07-25 18:47:38 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-07-25 18:47:38 +0000
commit17d1a4de40232188973fa1de804e2b11fe35cd39 (patch)
tree450f50a2fc0d352f95a825ebbd9e6d4a08016ac8 /lib/python
parent7c1b7fe307737d330493694f0735b380b718576c (diff)
downloadenigma2-17d1a4de40232188973fa1de804e2b11fe35cd39.tar.gz
enigma2-17d1a4de40232188973fa1de804e2b11fe35cd39.zip
add comment
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/Element.py4
1 files changed, 3 insertions, 1 deletions
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):