Fixes a bug in sessionCheck() for all adapters
Changes to ensure the code breaks out of the adapter session check loop once any one of them is in session. Change-Id: I73b3a5f4954050abf5ce3d4c5a04245c894725f2 CRs-Fixed: 534811
This commit is contained in:
parent
b6ddfac888
commit
cdeaa6e0f6
1 changed files with 5 additions and 1 deletions
|
@ -123,7 +123,11 @@ bool LocApiBase::isInSession()
|
|||
{
|
||||
bool inSession = false;
|
||||
|
||||
TO_ALL_LOCADAPTERS(inSession = mLocAdapters[i]->isInSession());
|
||||
for (int i = 0;
|
||||
!inSession && i < MAX_ADAPTERS && NULL != mLocAdapters[i];
|
||||
i++) {
|
||||
inSession = mLocAdapters[i]->isInSession();
|
||||
}
|
||||
|
||||
return inSession;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue