!101 修改死锁问题(3.2beta1)

Merge pull request !101 from tangfan/OpenHarmony-3.2-Beta1
This commit is contained in:
openharmony_ci
2022-05-27 06:08:06 +00:00
committed by Gitee
@@ -17,6 +17,7 @@
#include <dlfcn.h>
#include <memory>
#include <thread>
#include "anonymous_string.h"
#include "constants.h"
@@ -84,7 +85,8 @@ void DistributedHardwareManagerFactory::CheckExitSAOrNot()
const auto uuid = GetUUIDBySoftBus(networkId);
DHLOGI("Send trusted device online, networkId = %s, uuid = %s", GetAnonyString(networkId).c_str(),
GetAnonyString(uuid).c_str());
SendOnLineEvent(networkId, uuid, deviceInfo.deviceTypeId);
std::thread(&DistributedHardwareManagerFactory::SendOnLineEvent, this, networkId, uuid,
deviceInfo.deviceTypeId).detach();
}
}