mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: fix crash in get_firmware_info
Change-Id: I26807cfc9f66f13c3b44efb24570f23817c8b829
This commit is contained in:
@@ -2673,8 +2673,12 @@ void MachineObject::update_slice_info(std::string project_id, std::string profil
|
||||
void MachineObject::get_firmware_info()
|
||||
{
|
||||
m_firmware_valid = false;
|
||||
if (m_firmware_thread_started)
|
||||
return;
|
||||
|
||||
boost::thread update_info_thread = Slic3r::create_thread(
|
||||
[&] {
|
||||
m_firmware_thread_started = true;
|
||||
int result = 0;
|
||||
unsigned int http_code;
|
||||
std::string http_body;
|
||||
@@ -2745,6 +2749,7 @@ void MachineObject::get_firmware_info()
|
||||
catch (...) {
|
||||
return;
|
||||
}
|
||||
m_firmware_thread_started = false;
|
||||
m_firmware_valid = true;
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user