mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2025-01-17 06:52:43 +00:00
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:
parent
23623939c2
commit
2b6c002da9
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user