Updating error print in AGPS state machine

Minor update to print error message in AGPS
state machine only when valid.

CRs-Fixed: 2083361
Change-Id: Id8436d21a61b58ee8b5e83814225cbd34d0ea0d4
This commit is contained in:
Saurabh Srivastava 2017-07-26 18:57:48 +05:30
parent 686a5c54b0
commit a7094b1279

View file

@ -209,7 +209,10 @@ void AgpsStateMachine::processAgpsEventReleased(){
switch (mState){
case AGPS_STATE_RELEASED:
LOC_LOGE("Unexpected event RELEASED in state %d", mState);
/* Subscriber list should be empty if we are in released state */
if (!mSubscriberList.empty()) {
LOC_LOGE("Unexpected event RELEASED in RELEASED state");
}
break;
case AGPS_STATE_ACQUIRED: