fix: add uv_loop_close when object release to fix crash (#35322)

Co-authored-by: yangzuohui <yangzuohui@bytedance.com>
This commit is contained in:
Zuohui Yang 2022-08-15 22:40:52 +08:00 committed by GitHub
parent 9c2d89476c
commit cbc1ee5775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,6 +136,7 @@ void stop_and_close_uv_loop(uv_loop_t* loop) {
break;
DCHECK_EQ(0, uv_loop_alive(loop));
uv_loop_close(loop);
}
bool g_is_initialized = false;