diff options
author | Guantao Liu <guantaol@google.com> | 2018-11-27 13:22:44 -0800 |
---|---|---|
committer | Guantao Liu <guantaol@google.com> | 2018-11-27 13:22:44 -0800 |
commit | dc9ffa80349498cd80fd316b66571f6e94c2eaa1 (patch) | |
tree | c7ea0e776cb5e75af8db0bbd296ef0cd8c34a29d /src/core/lib | |
parent | a7b24f511fc7ab5cb41d6aee9838157955f2f9b3 (diff) |
Revert "Use a static local flag to memorize whether the grpc event engine runs in background or not"
This reverts commit 9bbda894cbd845cea48a76c536d9731436c6313f.
Diffstat (limited to 'src/core/lib')
-rw-r--r-- | src/core/lib/iomgr/tcp_posix.cc | 5 |
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, |