Skip to content
Snippets Groups Projects
Commit 2623014c authored by yang-g's avatar yang-g
Browse files

unlock before return

parent 1949efd5
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,7 @@ void grpc_remove_fd_from_all_epoll_sets(int fd) {
gpr_once_init(&init_epoll_fd_list_mu, init_mu);
gpr_mu_lock(&epoll_fd_list_mu);
if (epoll_fd_global_list.count == 0) {
gpr_mu_unlock(&epoll_fd_list_mu);
return;
}
for (size_t i = 0; i < epoll_fd_global_list.count; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment