serving: ctrl+c not exit
This commit is contained in:
parent
b0a7297eeb
commit
14eeb35eca
|
@ -262,9 +262,9 @@ Status Server::BuildAndStart() {
|
||||||
ClearEnv();
|
ClearEnv();
|
||||||
server->Shutdown();
|
server->Shutdown();
|
||||||
event_base_loopexit(eb, nullptr);
|
event_base_loopexit(eb, nullptr);
|
||||||
exit_http();
|
|
||||||
grpc_thread.join();
|
grpc_thread.join();
|
||||||
restful_thread.join();
|
restful_thread.join();
|
||||||
|
exit_http();
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
} // namespace serving
|
} // namespace serving
|
||||||
|
|
Loading…
Reference in New Issue