fix bluescreen ... i hope this is okay
[vuplus_dvbapp] / lib / python / Components / Element.py
index 884c87d..54a1cc2 100644 (file)
@@ -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)