aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib
diff options
context:
space:
mode:
authorGravatar Guantao Liu <guantaol@google.com>2018-11-27 13:22:44 -0800
committerGravatar Guantao Liu <guantaol@google.com>2018-11-27 13:22:44 -0800
commitdc9ffa80349498cd80fd316b66571f6e94c2eaa1 (patch)
treec7ea0e776cb5e75af8db0bbd296ef0cd8c34a29d /src/core/lib
parenta7b24f511fc7ab5cb41d6aee9838157955f2f9b3 (diff)
Revert "Use a static local flag to memorize whether the grpc event engine runs in background or not"
Diffstat (limited to 'src/core/lib')
-rw-r--r--src/core/lib/iomgr/tcp_posix.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/lib/iomgr/tcp_posix.cc b/src/core/lib/iomgr/tcp_posix.cc
index 4d9a66e82c..c802fcca75 100644
--- a/src/core/lib/iomgr/tcp_posix.cc
+++ b/src/core/lib/iomgr/tcp_posix.cc
@@ -260,10 +260,7 @@ static void notify_on_write(grpc_tcp* tcp) {
if (grpc_tcp_trace.enabled()) {
gpr_log(GPR_INFO, "TCP:%p notify_on_write", tcp);
}
-
- static bool grpc_event_engine_run_in_background =
- grpc_event_engine_run_in_background();
- if (grpc_event_engine_run_in_background) {
+ if (grpc_event_engine_run_in_background()) {
// If there is a polling engine always running in the background, there is
// no need to run the backup poller.
GRPC_CLOSURE_INIT(&tcp->write_done_closure, tcp_handle_write, tcp,