dhtproxy: fix join on terminated thread

This commit is contained in:
Seva committed 2019-06-17 16:42:12 -04:00
1 parent 632403875c
commit 789d41ff07
1 file changed
+2 -1
+2 -1
View File
@@ -142,7 +142,8 @@ DhtProxyServer::stop()
logger_->d("[restinio] closing http server async operations");
httpServer_->io_context().reset();
httpServer_->io_context().stop();
httpServerThread_.join();
if (httpServerThread_.joinable())
httpServerThread_.join();
logger_->d("[restinio] http server closed");
}