Skip to content

Commit

Permalink
change exception to warning log for AppConfig::save() on badly named …
Browse files Browse the repository at this point in the history
…thread.

On win11, the vent thread doesn't have the right name?
#4046
  • Loading branch information
supermerill committed Feb 7, 2024
1 parent 853d2cd commit 53e4f4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libslic3r/AppConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,9 @@ 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 != "slic3r_main")
throw CriticalException("Calling AppConfig::save() from a worker thread!");
//in win11, it seems that the gui event thread isn't named 'slic3r_main'
BOOST_LOG_TRIVIAL(warning) << "AppConfig::save() from thread '" << *current_thread_name << "' instead of 'slic3r_main'\n";
//throw CriticalException("Calling AppConfig::save() from a worker thread!");
}

// The config is first written to a file with a PID suffix and then moved
Expand Down

0 comments on commit 53e4f4b

Please sign in to comment.