loop: fix loop_add_fd when called multiple times
This commit is contained in:
parent
0c7932a3af
commit
28c0abbc57
2
loop.c
2
loop.c
@ -124,7 +124,7 @@ void loop_add_fd(struct loop *loop, int fd, short mask,
|
|||||||
}
|
}
|
||||||
event->callback = callback;
|
event->callback = callback;
|
||||||
event->data = data;
|
event->data = data;
|
||||||
wl_list_insert(&loop->fd_events, &event->link);
|
wl_list_insert(loop->fd_events.prev, &event->link);
|
||||||
|
|
||||||
struct pollfd pfd = {fd, mask, 0};
|
struct pollfd pfd = {fd, mask, 0};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user