mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
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;
|
prev = i;
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
(*prev)(args);
|
int result = (*prev)(args);
|
||||||
|
|
||||||
|
if (result == -1)
|
||||||
|
m_Delegates.erase(prev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user