mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
dhtproxy: fix join on terminated thread
This commit is contained in:
1 parent
632403875c
commit
789d41ff07
1 file changed
+2
-1
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user