mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00:00
Fix crash due to modify same collection concurrently
This commit is contained in:
@@ -667,6 +667,9 @@ namespace Slic3r
|
||||
|
||||
void DeviceManager::parse_user_print_info(std::string body)
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(trace) << "DeviceManager::parse_user_print_info";
|
||||
std::lock_guard<std::mutex> lock(listMutex);
|
||||
|
||||
if (device_subseries.size() <= 0) {
|
||||
device_subseries = DevPrinterConfigUtil::get_all_subseries();
|
||||
if (device_subseries.size() <= 0) {
|
||||
@@ -674,8 +677,6 @@ namespace Slic3r
|
||||
}
|
||||
}
|
||||
|
||||
BOOST_LOG_TRIVIAL(trace) << "DeviceManager::parse_user_print_info";
|
||||
std::lock_guard<std::mutex> lock(listMutex);
|
||||
std::set<std::string> new_list;
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user