FIX: fix crash in update_slice_info

join update_slice_info thread when destroy
the MachineObject

Change-Id: I9f22cf5445ef9426651a8affa799da03b7456015
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2022-08-04 14:05:26 +08:00 committed by Lane.Wei
parent 36be714ed4
commit ed36024efa
2 changed files with 10 additions and 1 deletions

View file

@ -479,6 +479,8 @@ public:
std::string task_id_;
std::string subtask_id_;
BBLSliceInfo* slice_info {nullptr};
boost::thread* get_slice_info_thread { nullptr };
int plate_index { -1 };
std::string m_gcode_file;
int gcode_file_prepare_percent = 0;