FIX: add protection for get_model_task_thread thread

Jira: XXXX

Change-Id: I3cbc17d181a0e13c658f31eaeb6a4df878e6df41
Signed-off-by: maosheng.wei <maosheng.wei@bambulab.com>
This commit is contained in:
maosheng.wei
2023-11-01 14:41:41 +08:00
committed by Lane.Wei
parent eaa7abf518
commit 5b5e5be07c
2 changed files with 14 additions and 3 deletions

View File

@@ -312,7 +312,8 @@ struct DisValue {
class MachineObject
{
private:
NetworkAgent* m_agent { nullptr };
NetworkAgent * m_agent{nullptr};
std::shared_ptr<int> m_token = std::shared_ptr<int>(0);
bool check_valid_ip();
void _parse_print_option_ack(int option);