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

Pollset can be destroyed again in pollset_work if the called_shutdown is not set here

parent 759f59a1
No related branches found
No related tags found
No related merge requests found
......@@ -354,6 +354,7 @@ static void basic_do_promote(grpc_exec_ctx *exec_ctx, void *args, int success) {
if (pollset->shutting_down) {
/* We don't care about this pollset anymore. */
if (pollset->in_flight_cbs == 0 && !pollset->called_shutdown) {
pollset->called_shutdown = 1;
finish_shutdown(exec_ctx, pollset);
}
} else if (grpc_fd_is_orphaned(fd)) {
......
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