diff options
-rw-r--r-- | src/core/iomgr/pollset_posix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/iomgr/pollset_posix.c b/src/core/iomgr/pollset_posix.c index 2ed8c84ebb..291181d9a5 100644 --- a/src/core/iomgr/pollset_posix.c +++ b/src/core/iomgr/pollset_posix.c @@ -145,6 +145,7 @@ void grpc_pollset_add_fd(grpc_pollset *pollset, grpc_fd *fd) { } gpr_mu_lock(&pollset->mu); pollset->vtable->add_fd(pollset, fd, 1); + grpc_workqueue_flush(fd->workqueue, 0); /* the following (enabled only in debug) will reacquire and then release our lock - meaning that if the unlocking flag passed to del_fd above is not respected, the code will deadlock (in a way that we have a chance of |