From 39526894cfaafab8b9fc6714956c4f6df0bcc329 Mon Sep 17 00:00:00 2001 From: Bhavna Sharma Date: Mon, 18 Sep 2017 16:12:46 -0700 Subject: AGPS Init must complete in one message call If AGPS initialization is split across multiple messages on the msgTask, it causes other other commands to seep in before the initialization can complete. To avoid this the initialization must be completed in one message. Also includes some cleanup on AGPS initializations. CRs-Fixed: 2111399 Change-Id: Id61ceeb12d5781764b42ff9d1868884537ca8d90 --- core/LocApiBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/LocApiBase.cpp') diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index 070b2ae..4bc38e2 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -208,7 +208,7 @@ void LocApiBase::removeAdapter(LocAdapterBase* adapter) void LocApiBase::updateEvtMask() { - mMsgTask->sendMsg(new LocOpenMsg(this, getEvtMask())); + open(getEvtMask()); } void LocApiBase::handleEngineUpEvent() -- cgit v1.2.3