From 172101b6a15dae4ce5438babfde1f8301262fea8 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 21 Jul 2006 22:48:09 +0000 Subject: clear list of previous found services when a new servicescan starts --- lib/python/Components/FIFOList.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/python/Components/FIFOList.py') diff --git a/lib/python/Components/FIFOList.py b/lib/python/Components/FIFOList.py index 16b51c89..4adf6aff 100644 --- a/lib/python/Components/FIFOList.py +++ b/lib/python/Components/FIFOList.py @@ -10,3 +10,7 @@ class FIFOList(MenuList): self.list.append(item) self.list = self.list[-self.len:] self.l.setList(self.list) + + def clear(self): + del self.list[:] + self.l.setList(self.list) -- cgit v1.2.3