Skip to content
Snippets Groups Projects
Commit b3461f71 authored by Manuela Kuhn's avatar Manuela Kuhn
Browse files

Fixed removal of elements of list in SignalHandler

parent c4d64a8f
No related branches found
No related tags found
No related merge requests found
......@@ -357,7 +357,7 @@ class SignalHandler():
self.log.debug("Remove " + str(socketId) + " from pemanent request/allowed list.")
if not listToCheck[i]:
del listToCheck[i]
tmpRemoveIndex.append(i)
if variList != None:
del variList[i]
if correspList != None:
......@@ -366,6 +366,9 @@ class SignalHandler():
if correspList != None:
correspList[i] = correspList[i] % len(listToCheck[i])
for index in tmpRemoveIndex:
del listToCheck[index]
# send signal to TaskManager
self.forwardSignal = ["CLOSE_SOCKETS", socketIds]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment