[mammoth] Run EndpointServer in its own thread.

This commit is contained in:
Drew Galbraith 2023-08-01 16:08:34 -07:00
parent caccb08e16
commit c70b5b0753
4 changed files with 25 additions and 15 deletions

View file

@ -26,7 +26,8 @@ uint64_t main(uint64_t init_port_cap) {
server->CreateClient());
check(stub.Register("denali", *client));
RET_ERR(server->RunServer());
// FIXME: Add thread join.
Thread server_thread = server->RunServer();
check(server_thread.Join());
return 0;
}