fix(core): event loop check stop flag

This commit is contained in:
eeff
2024-07-04 16:15:19 +08:00
parent a50d3416ee
commit d71f240ec7
+1 -1
View File
@@ -108,7 +108,7 @@ static void *event_loop(void *arg)
neu_events_t *events = (neu_events_t *) arg;
int epoll_fd = events->epoll_fd;
while (true) {
while (!events->stop) {
struct epoll_event event = { 0 };
struct event_data *data = NULL;