mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 979626 - Crash in Telephony while running stability scripts. r=vicamo
This commit is contained in:
parent
4164cd3490
commit
ac1bf381e1
@ -202,12 +202,6 @@ Telephony::Create(nsPIDOMWindow* aOwner, ErrorResult& aRv)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
rv = ril->RegisterListener(telephony->mListener);
|
||||
if (NS_FAILED(rv)) {
|
||||
aRv.Throw(rv);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return telephony.forget();
|
||||
}
|
||||
|
||||
@ -635,6 +629,10 @@ Telephony::EnumerateCallStateComplete()
|
||||
if (NS_FAILED(NotifyCallsChanged(nullptr))) {
|
||||
NS_WARNING("Failed to notify calls changed!");
|
||||
}
|
||||
|
||||
if (NS_FAILED(mProvider->RegisterListener(mListener))) {
|
||||
NS_WARNING("Failed to register listener!");
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user