fix death screen in some conditions
authorghost <andreas.monzner@multimedia-labs.de>
Sun, 21 Dec 2008 10:11:47 +0000 (11:11 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Sun, 21 Dec 2008 10:11:47 +0000 (11:11 +0100)
del fakeRec doesnt work, when the fakeRecList was empty
thx to adenin

lib/python/Components/TimerSanityCheck.py

index 031c9ca..10dc31b 100644 (file)
@@ -200,7 +200,7 @@ class TimerSanityCheck:
                                        if timer == fakeRec[0] and fakeRec[1]:
                                                NavigationInstance.instance.stopRecordService(fakeRec[1])
                                                fakeRecList.remove(fakeRec)
                                        if timer == fakeRec[0] and fakeRec[1]:
                                                NavigationInstance.instance.stopRecordService(fakeRec[1])
                                                fakeRecList.remove(fakeRec)
-                               del fakeRec
+                               fakeRec = None
                                for entry in overlaplist:
                                        if entry[1] == timer:
                                                overlaplist.remove(entry)
                                for entry in overlaplist:
                                        if entry[1] == timer:
                                                overlaplist.remove(entry)