debug: dont manually unlock the lock_guard (#7210)
when lock_guard goes out of scope it RAII itself and calls unlock. causes crashes on freebsd/libc++ and double unlocking a mutex is UB.
This commit is contained in:
parent
fa6ee51367
commit
5b736a4a66
1 changed files with 0 additions and 1 deletions
|
|
@ -72,6 +72,5 @@ namespace Debug {
|
||||||
logMsg += std::vformat(fmt.get(), std::make_format_args(args...));
|
logMsg += std::vformat(fmt.get(), std::make_format_args(args...));
|
||||||
|
|
||||||
log(level, logMsg);
|
log(level, logMsg);
|
||||||
logMutex.unlock();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue