From 685d46219d90e7c0d1a8f02c2bc7aa76628ed9c4 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Thu, 18 Jun 2020 12:09:05 +0200 Subject: [PATCH] .. --- src/event_loop.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/event_loop.c b/src/event_loop.c index cae9696c..261740a2 100644 --- a/src/event_loop.c +++ b/src/event_loop.c @@ -72,10 +72,8 @@ static inline void event_loop_destroy_event(struct event *event) static void *event_loop_run(void *context) { struct event_loop *event_loop = (struct event_loop *) context; - struct queue *queue = (struct queue *) &event_loop->queue; - while (event_loop->is_running) { - struct event *event = queue_pop(queue); + struct event *event = queue_pop(&event_loop->queue); if (event) { uint32_t result = event_handler[event->type](event->context, event->param1);