Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya authored and unrevre committed Jun 18, 2020
1 parent b523845 commit 685d462
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 685d462

Please sign in to comment.