Skip to content
Snippets Groups Projects
Commit b5ee1cdc authored by Craig Tiller's avatar Craig Tiller
Browse files

Dont stall shutting down server

parent 38fb8de1
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,8 @@ class AsyncQpsServerTest : public Server {
for (auto ss = shutdown_state_.begin(); ss != shutdown_state_.end(); ++ss) {
(*ss)->set_shutdown();
}
server_->Shutdown();
server_->Shutdown(std::chrono::system_clock::now() +
std::chrono::seconds(3));
for (auto thr = threads_.begin(); thr != threads_.end(); thr++) {
thr->join();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment