fix:Solve the problem of failure to go online again after account switching

Signed-off-by: YOUR_NAME <xusai4@huawei.com>
This commit is contained in:
YOUR_NAME 2022-09-22 14:34:49 +00:00
parent 23623939c2
commit 2b6c002da9

View File

@ -1251,6 +1251,10 @@ static void OnDeviceNotTrusted(const char *peerUdid)
SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "not trusted udid is too long");
return;
}
if (!LnnGetOnlineStateById(peerUdid, CATEGORY_UDID)) {
SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_INFO, "not trusted device has offline!");
return;
}
NotTrustedDelayInfo *info = (NotTrustedDelayInfo *)SoftBusCalloc(sizeof(NotTrustedDelayInfo));
if (info == NULL) {
SoftBusLog(SOFTBUS_LOG_LNN, SOFTBUS_LOG_ERROR, "malloc NotTrustedDelayInfo fail");