Handles transactions started immediately after completion

Unset mIsTransactionPending before invoking handleTxnResult
to allow service to start a new transaction.

Bug: 70387233
Test: Run a sample application that concurrently loads and unloads 2
nanoapps, verify both transactions succeed.

Change-Id: I465882dd8fd8fdd89b959642f6fdc2e452ce61a6
This commit is contained in:
Arthur Ishiguro
2017-12-08 09:26:17 -08:00
parent 4dc7e049f0
commit cce554ec47

View File

@@ -281,11 +281,11 @@ int Contexthub::handleOsMessage(sp<IContexthubCallback> cb,
result = TransactionResult::FAILURE;
}
mIsTransactionPending = false;
if (cb != nullptr) {
cb->handleTxnResult(mTransactionId, result);
}
retVal = 0;
mIsTransactionPending = false;
break;
}