Skip to content
Snippets Groups Projects
Commit b8a5f866 authored by Yang Gao's avatar Yang Gao
Browse files

do not request another call if server is shutdown

parent eb697aa1
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment