1
0
mirror of synced 2024-11-24 15:50:16 +01:00

fix: Crash when too many entries are being logged at once

This commit is contained in:
WerWolv 2023-05-14 21:39:18 +02:00
parent 609afebc55
commit 610f109e2a

View File

@ -705,7 +705,11 @@ namespace hex {
void Window::initGLFW() {
glfwSetErrorCallback([](int error, const char *desc) {
log::error("GLFW Error [{}] : {}", error, desc);
try {
log::error("GLFW Error [{}] : {}", error, desc);
} catch (const std::system_error &) {
// Catch and ignore system error that might be thrown when too many errors are being logged to a file
}
});
if (!glfwInit()) {