mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-24 09:20:04 +00:00
session fix
This commit is contained in:
parent
8bddce76c0
commit
ef86089dba
@ -199,7 +199,11 @@ int SessionServiceImpl::OpenSessionCallback(int sessionId)
|
||||
}
|
||||
|
||||
NodeBasicInfo info;
|
||||
if (GetLocalNodeDeviceInfo((session->GetMySessionName()).c_str(), &info) != SOFTBUS_OK) {
|
||||
char pkgName[PKG_NAME_SIZE_MAX];
|
||||
if (GetPkgNameInner(sessionId, pkgName, PKG_NAME_SIZE_MAX) != SOFTBUS_OK) {
|
||||
return SOFTBUS_ERR;
|
||||
}
|
||||
if (GetLocalNodeDeviceInfo(pkgName, &info) != SOFTBUS_OK) {
|
||||
return SOFTBUS_ERR;
|
||||
}
|
||||
session->SetDeviceId(info.networkId);
|
||||
|
Loading…
Reference in New Issue
Block a user