serving: ctrl+c not exit

This commit is contained in:
xuyongfei 2020-09-29 10:33:41 +08:00
parent b0a7297eeb
commit 14eeb35eca
1 changed files with 1 additions and 1 deletions

View File

@ -262,9 +262,9 @@ Status Server::BuildAndStart() {
ClearEnv();
server->Shutdown();
event_base_loopexit(eb, nullptr);
exit_http();
grpc_thread.join();
restful_thread.join();
exit_http();
return SUCCESS;
}
} // namespace serving