mirror of
https://github.com/emqx/neuron.git
synced 2026-10-20 07:21:35 +08:00
fix(core): event loop check stop flag
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user