From 8c1351ccbd467f2b6bb2ef44b45687021dbc054d Mon Sep 17 00:00:00 2001 From: f-kessler Date: Sat, 11 Aug 2018 12:52:30 +0200 Subject: [PATCH] fixed the delete of all contents in multiList --- includes/multicastAlarm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/multicastAlarm.py b/includes/multicastAlarm.py index b6d1e7d..e9b8122 100644 --- a/includes/multicastAlarm.py +++ b/includes/multicastAlarm.py @@ -29,7 +29,7 @@ def newEntrymultiList(data): timestamp = int(time.time()) # multicastAlarm processing if enabled and delimiter RIC has been received if data['ric'] == globalVars.config.get("multicastAlarm", "multicastAlarm_delimiter_ric"): - multiList = [] + del multiList[:] logging.debug("delimiter RIC received - buffer cleared") else: multiList.append([data, timestamp]) @@ -58,7 +58,7 @@ def multicastAlarmExec(freq, data): try: from includes import alarmHandler alarmHandler.processAlarmHandler("POC", freq, data) - multiList = [] + del multiList[:] logging.debug("multicastAlarm finished - buffer cleared") except: logging.error("processing alarm failed")