diff --git a/test/cpp/interop/reconnect_interop_server.cc b/test/cpp/interop/reconnect_interop_server.cc index 1c9ba55fb87..8bc51aa52e4 100644 --- a/test/cpp/interop/reconnect_interop_server.cc +++ b/test/cpp/interop/reconnect_interop_server.cc @@ -113,11 +113,9 @@ class ReconnectServiceImpl : public ReconnectService::Service { // extract timestamps and set response Verify(response); reconnect_server_clear_timestamps(&tcp_server_); - { - std::lock_guard lock(mu_); - serving_ = false; - cv_.notify_one(); - } + std::lock_guard lock(mu_); + serving_ = false; + cv_.notify_one(); return Status::OK; }