mirror of https://github.com/Icinga/icinga2.git
Make sure to remove dead weak delegates from events.
This commit is contained in:
parent
0a73519030
commit
b0ed08d4b5
|
@ -42,7 +42,10 @@ public:
|
|||
prev = i;
|
||||
i++;
|
||||
|
||||
(*prev)(args);
|
||||
int result = (*prev)(args);
|
||||
|
||||
if (result == -1)
|
||||
m_Delegates.erase(prev);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue