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

pull/3627/head
yang-g 9 years ago
parent 759f59a183
commit 2c1c00055b
  1. 1
      src/core/iomgr/pollset_posix.c

@ -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)) {

Loading…
Cancel
Save