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:
Satheesh Jayakumar 2013-08-29 14:53:55 -07:00
parent b6ddfac888
commit cdeaa6e0f6

View file

@ -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;
}