Heya!
Excerpt from a documentation about `uv_stop()`:
/*
* This function will stop the event loop by forcing uv_run to end
* as soon as possible, but not sooner than the next loop iteration.
* If this function was called before blocking for i/o, the loop won't
* block for i/o on this iteration.
*/
So the `uv_stop()` is forcing `uv_run()` to return, even if there are still
some active handles on the loop. You should close all of them before attempting
to call `uv_loop_close()`, and you could do while walking through all active
handles in loop:
/*
* Walk the list of open handles.
*/
UV_EXTERN void uv_walk(uv_loop_t* loop, uv_walk_cb walk_cb, void* arg);
Cheers,
Fedor.
> --
> You received this message because you are subscribed to the Google Groups
> "libuv" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
libuv+un...@googlegroups.com.
> To post to this group, send email to
li...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/libuv.
> For more options, visit
https://groups.google.com/d/optout.