do not request another call if server is shutdown

pull/1521/head
Yang Gao 10 years ago
parent eb697aa12a
commit b8a5f866f2
  1. 8
      src/cpp/server/server.cc

@ -446,8 +446,12 @@ void Server::RunRpc() {
ScheduleCallback();
if (ok) {
SyncRequest::CallData cd(this, mrd);
mrd->Request(server_);
{
grpc::unique_lock<grpc::mutex> lock(mu_);
if (!shutdown_) {
mrd->Request(server_);
}
}
cd.Run();
}
}

Loading…
Cancel
Save