diff options
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/interop/reconnect_interop_server.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/cpp/interop/reconnect_interop_server.cc b/test/cpp/interop/reconnect_interop_server.cc index 1c9ba55fb8..8bc51aa52e 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<std::mutex> lock(mu_); - serving_ = false; - cv_.notify_one(); - } + std::lock_guard<std::mutex> lock(mu_); + serving_ = false; + cv_.notify_one(); return Status::OK; } |