aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr/pollset_posix.c
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-10-02 16:15:05 -0700
committerGravatar yang-g <yangg@google.com>2015-10-02 16:15:05 -0700
commit2c1c00055b11bf9d54998ec2ac98e2464e4b07bd (patch)
tree9ba810c2022ea9781a965f46ff90784efdfba7b1 /src/core/iomgr/pollset_posix.c
parent759f59a18354beefa75ffa1f31172121bbf255f2 (diff)
Pollset can be destroyed again in pollset_work if the called_shutdown is not set here
Diffstat (limited to 'src/core/iomgr/pollset_posix.c')
-rw-r--r--src/core/iomgr/pollset_posix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/iomgr/pollset_posix.c b/src/core/iomgr/pollset_posix.c
index 82a82cc064..418502d1c6 100644
--- a/src/core/iomgr/pollset_posix.c
+++ b/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)) {