mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-28 03:10:48 +00:00
!6195 bug:When the sessionkey can be matched, set it is Available
Merge pull request !6195 from 宋晨曦/master
This commit is contained in:
commit
fadbe1d772
@ -1807,6 +1807,7 @@ static void HandleConnectionData(
|
||||
ReleaseAuthLock();
|
||||
return;
|
||||
}
|
||||
auth->hasAuthPassed = true;
|
||||
auth->lastActiveTime = GetCurrentTimeMs();
|
||||
auth->connId[type] = connId;
|
||||
AuthHandle authHandle = { .authId = authId, .type = GetConnType(connId) };
|
||||
|
@ -357,6 +357,7 @@ int32_t GetSessionKeyByIndex(const SessionKeyList *list, int32_t index, AuthLink
|
||||
AUTH_LOGE(AUTH_FSM, "get session key fail, index=%{public}d", index);
|
||||
return SOFTBUS_MEM_ERR;
|
||||
}
|
||||
item->isAvailable = true;
|
||||
item->lastUseTime = GetCurrentTimeMs();
|
||||
item->useTime[type] = item->lastUseTime;
|
||||
AUTH_LOGI(AUTH_FSM, "get session key succ, index=%{public}d, time=%{public}" PRIu64, index, item->lastUseTime);
|
||||
|
Loading…
Reference in New Issue
Block a user