X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FElement.py;h=54a1cc251cce6239537eec090249279db409d0d8;hb=7c1b7fe307737d330493694f0735b380b718576c;hp=884c87d393d920f0b1bec8a2e012be0b80d25e0e;hpb=9bcc599fba7204b53fc24f2ce7357fe0a85f0dc4;p=vuplus_dvbapp diff --git a/lib/python/Components/Element.py b/lib/python/Components/Element.py index 884c87d..54a1cc2 100644 --- a/lib/python/Components/Element.py +++ b/lib/python/Components/Element.py @@ -29,7 +29,8 @@ 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" - self.source.disconnectDownstream(self) + if self.source: + self.source.disconnectDownstream(self) def disconnectDownstream(self, downstream): self.downstream_elements.remove(downstream)