aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Sources/CurrentService.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-08-09 00:26:15 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-08-09 00:26:15 +0000
commit9d3112aad388b4369a339b851aa2507a02bb2d4f (patch)
tree744d27b53a25921978f8df8b1b1c2c836caa442c /lib/python/Components/Sources/CurrentService.py
parentab2ae6bd08a0ef13fc7462d51fc3a9ab15509b17 (diff)
downloadenigma2-9d3112aad388b4369a339b851aa2507a02bb2d4f.tar.gz
enigma2-9d3112aad388b4369a339b851aa2507a02bb2d4f.zip
fix caching
Diffstat (limited to 'lib/python/Components/Sources/CurrentService.py')
-rw-r--r--lib/python/Components/Sources/CurrentService.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Components/Sources/CurrentService.py b/lib/python/Components/Sources/CurrentService.py
index 08d67eee..f49f0323 100644
--- a/lib/python/Components/Sources/CurrentService.py
+++ b/lib/python/Components/Sources/CurrentService.py
@@ -1,6 +1,7 @@
from Components.PerServiceDisplay import PerServiceBase
from enigma import iPlayableService
from Source import Source
+from Components.Element import cached
from time import time
@@ -22,9 +23,8 @@ class CurrentService(PerServiceBase, Source):
def serviceEvent(self, event):
self.changed((self.CHANGED_SPECIFIC, event))
+ @cached
def getCurrentService(self):
- if self.cache is None:
- self.cache = self.navcore.getCurrentService()
- return self.cache
+ return self.navcore.getCurrentService()
service = property(getCurrentService)