fixed the delete of all contents in multiList

This commit is contained in:
f-kessler 2018-08-11 12:52:30 +02:00 committed by GitHub
parent 86c0467ee2
commit 8c1351ccbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")