mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-09 03:12:26 +00:00
Fix of previopus commut
This commit is contained in:
1 parent
18cf1fdb43
commit
961abd75e8
1 file changed
+1
-1
@@ -333,7 +333,7 @@ void RemovableDriveManager::eject_drive()
|
|||||||
// Remove the drive_data from m_current drives, searching by value, not by pointer, as m_current_drives may get modified during
|
// Remove the drive_data from m_current drives, searching by value, not by pointer, as m_current_drives may get modified during
|
||||||
// asynchronous execution on m_eject_thread.
|
// asynchronous execution on m_eject_thread.
|
||||||
tbb::mutex::scoped_lock lock(m_drives_mutex);
|
tbb::mutex::scoped_lock lock(m_drives_mutex);
|
||||||
auto it = m_current_drives.find(drive_data);
|
auto it = std::find(m_current_drives.begin(), m_current_drives.end(), drive_data);
|
||||||
if (it != m_current_drives.end())
|
if (it != m_current_drives.end())
|
||||||
m_current_drives.erase(it);
|
m_current_drives.erase(it);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user