FIX: fix shard_ptr is null

Change-Id: I0187cf64ffbb08a2265a11900b5c865e9ac9678f
This commit is contained in:
maosheng.wei 2023-11-02 10:35:35 +08:00 committed by Lane.Wei
parent 4170639bc9
commit 1ac8c3ef19
1 changed files with 1 additions and 1 deletions

View File

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