don't restart acceptor after stop

This commit is contained in:
orignal committed 2025-12-16 09:32:03 -05:00
1 parent 55f9928485
commit 8da012b826
1 file changed
+2 -1
+2 -1
View File
@@ -1617,7 +1617,8 @@ namespace http {
if (newSocket) newSocket->close();
LogPrint(eLogError, "HTTP Server: Error handling accept: ", ecode.message());
}
Accept ();
if (m_IsRunning)
Accept ();
}
void HTTPServer::CreateConnection(std::shared_ptr<boost::asio::ip::tcp::socket> newSocket)