mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
clover: Catch errors from executing event action
Abort all dependent events.
v2: Abort the current event as well.
CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
(cherry picked from commit 866b25fd01)
This commit is contained in:
parent
409894e616
commit
92e544d96e
1 changed files with 3 additions and 1 deletions
|
|
@ -49,12 +49,14 @@ event::trigger_self() {
|
|||
}
|
||||
|
||||
void
|
||||
event::trigger() {
|
||||
event::trigger() try {
|
||||
if (wait_count() == 1)
|
||||
action_ok(*this);
|
||||
|
||||
for (event &ev : trigger_self())
|
||||
ev.trigger();
|
||||
} catch (error &e) {
|
||||
abort(e.get());
|
||||
}
|
||||
|
||||
std::vector<intrusive_ref<event>>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue