mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 11:02:08 +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)
|
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) {
|
if (device_subseries.size() <= 0) {
|
||||||
device_subseries = DevPrinterConfigUtil::get_all_subseries();
|
device_subseries = DevPrinterConfigUtil::get_all_subseries();
|
||||||
if (device_subseries.size() <= 0) {
|
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;
|
std::set<std::string> new_list;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user