Bug 1089534 - [B2G][Telephony] should GetCallFromEverywhere in Telephony::NotifyError. r=aknow

This commit is contained in:
Hsin-Yi Tsai 2014-10-27 17:06:40 +08:00
parent 8aecf4c314
commit 91a2b9fbda

View File

@ -634,12 +634,8 @@ Telephony::NotifyError(uint32_t aServiceId,
int32_t aCallIndex,
const nsAString& aError)
{
if (mCalls.IsEmpty()) {
NS_ERROR("No existing call!");
return NS_ERROR_UNEXPECTED;
}
nsRefPtr<TelephonyCall> callToNotify = GetCall(aServiceId, aCallIndex);
nsRefPtr<TelephonyCall> callToNotify =
GetCallFromEverywhere(aServiceId, aCallIndex);
if (!callToNotify) {
NS_ERROR("Don't call me with a bad call index!");
return NS_ERROR_UNEXPECTED;