diff options
Diffstat (limited to 'src/core/lib/gprpp/work_serializer.cc')
-rw-r--r-- | src/core/lib/gprpp/work_serializer.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lib/gprpp/work_serializer.cc b/src/core/lib/gprpp/work_serializer.cc index 530238d549..1959deed98 100644 --- a/src/core/lib/gprpp/work_serializer.cc +++ b/src/core/lib/gprpp/work_serializer.cc @@ -262,6 +262,9 @@ void WorkSerializer::LegacyWorkSerializer::DrainQueueOwned() { } // There is at least one callback on the queue. Pop the callback from the // queue and execute it. + if (IsWorkSerializerClearsTimeCacheEnabled() && ExecCtx::Get() != nullptr) { + ExecCtx::Get()->InvalidateNow(); + } CallbackWrapper* cb_wrapper = nullptr; bool empty_unused; while ((cb_wrapper = reinterpret_cast<CallbackWrapper*>( |