mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX: fix the appconfog:save exception under virtualbox of linux
Change-Id: Iadf682727d8ac2ac8694b03e999790866120bf10
This commit is contained in:
parent
55f55e3ad9
commit
6be79946f4
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ void AppConfig::save()
|
|||
{
|
||||
// Returns "undefined" if the thread naming functionality is not supported by the operating system.
|
||||
std::optional<std::string> current_thread_name = get_current_thread_name();
|
||||
if (current_thread_name && *current_thread_name != "bambustu_main") {
|
||||
if (current_thread_name && *current_thread_name != "bambustu_main" && *current_thread_name != "main") {
|
||||
BOOST_LOG_TRIVIAL(error) << __FUNCTION__<<", current_thread_name is " << *current_thread_name;
|
||||
throw CriticalException("Calling AppConfig::save() from a worker thread, thread name: " + *current_thread_name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue