aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/FIFOList.py4
-rw-r--r--lib/python/Components/ServiceScan.py1
2 files changed, 5 insertions, 0 deletions
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)
diff --git a/lib/python/Components/ServiceScan.py b/lib/python/Components/ServiceScan.py
index b4c47a75..0e23d344 100644
--- a/lib/python/Components/ServiceScan.py
+++ b/lib/python/Components/ServiceScan.py
@@ -78,6 +78,7 @@ class ServiceScan:
self.updatePass()
self.scan.statusChanged.get().append(self.scanStatusChanged)
self.scan.newService.get().append(self.newService)
+ self.servicelist.clear()
self.state = self.Running
err = self.scan.start(self.feid, self.flags)
if err: