Fix recursive use of mutex introduced in previous change.
Change-Id: I2ef4e1187a03f28712d16920b275d39963ff5ac7 Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
parent
bd3166c592
commit
0b602e40b8
1 changed files with 5 additions and 1 deletions
|
@ -1500,7 +1500,11 @@ static void loc_eng_process_deferred_action (void* arg)
|
||||||
loc_eng_data.agps_request_pending = false;
|
loc_eng_data.agps_request_pending = false;
|
||||||
if (loc_eng_data.stop_request_pending)
|
if (loc_eng_data.stop_request_pending)
|
||||||
{
|
{
|
||||||
loc_eng_stop();
|
LOGD ("handling deferred stop\n");
|
||||||
|
if (loc_stop_fix(loc_eng_data.client_handle) != RPC_LOC_API_SUCCESS)
|
||||||
|
{
|
||||||
|
LOGD ("loc_stop_fix failed!\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pthread_mutex_unlock(&(loc_eng_data.deferred_stop_mutex));
|
pthread_mutex_unlock(&(loc_eng_data.deferred_stop_mutex));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue