Skip to content
Snippets Groups Projects
Commit 789d41ff authored by Seva's avatar Seva
Browse files

dhtproxy: fix join on terminated thread

parent 63240387
Branches
Tags
No related merge requests found
...@@ -142,6 +142,7 @@ DhtProxyServer::stop() ...@@ -142,6 +142,7 @@ DhtProxyServer::stop()
logger_->d("[restinio] closing http server async operations"); logger_->d("[restinio] closing http server async operations");
httpServer_->io_context().reset(); httpServer_->io_context().reset();
httpServer_->io_context().stop(); httpServer_->io_context().stop();
if (httpServerThread_.joinable())
httpServerThread_.join(); httpServerThread_.join();
logger_->d("[restinio] http server closed"); logger_->d("[restinio] http server closed");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment