Merge pull request #1521 from yang-g/race

do not request another call if server is shutdown
pull/992/merge
Craig Tiller 10 years ago
commit f4d4ae0dd5
  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