Rework the shutdown logic in the OpenGL backend. Eliminated race conditions.

This commit is contained in:
Henrik Rydgård committed 2025-08-31 10:57:06 +02:00
1 parent b813a6c30f
commit 9218fe9b59
26 files changed
+158 -200

No files matched your search

+1 -1
View File
@@ -350,7 +350,7 @@ void Server::HandleRequestDefault(const ServerRequest &request) {
}
void Server::Handle404(const ServerRequest &request) {
INFO_LOG(Log::IO, "No handler for '%s', falling back to 404.", request.resource());
INFO_LOG(Log::IO, "No handler for '%.*s', falling back to 404.", (int)request.resource().size(), request.resource().data());
const char *payload = "<html><body>404 not found</body></html>\r\n";
request.WriteHttpResponseHeader("1.0", 404, strlen(payload));
request.Out()->Push(payload);