summaryrefslogtreecommitdiff
path: root/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'events.c')
-rw-r--r--events.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/events.c b/events.c
index da5e426..15d9535 100644
--- a/events.c
+++ b/events.c
@@ -126,6 +126,10 @@ static void events_dispatch(struct events *events, const fd_set *rfds,
if (event->type == OMAP3_ISP_EVENT_EXCEPTION &&
FD_ISSET(event->fd, efds))
event->callback(event->priv);
+
+ /* If the callback stopped events processing, we're done. */
+ if (events->done)
+ break;
}
}