mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-27 09:59:48 -07:00
Fix crash due to modify same collection concurrently
This commit is contained in:
parent
fb4bb83546
commit
4ee98b1807
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue