mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-22 06:41:01 +00:00
Fix crash due to modify same collection concurrently
This commit is contained in:
1 parent
fb4bb83546
commit
4ee98b1807
1 file changed
+3
-2
@@ -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