Bug 962447 - [fugu][b2g] should getFailCauseCode() even the connection hasn't been established. r=vicamo

This commit is contained in:
Hsin-Yi Tsai 2014-01-23 13:58:30 +08:00
parent 460d662111
commit bf8637fd08

View File

@ -3657,8 +3657,8 @@ let RIL = {
_sendCallError: function(callIndex, errorMsg) {
this.sendChromeMessage({rilMessageType: "callError",
callIndex: callIndex,
errorMsg: errorMsg});
callIndex: callIndex,
errorMsg: errorMsg});
},
_sendDataCallError: function(message, errorCode) {
@ -5095,8 +5095,7 @@ RIL[REQUEST_DIAL] = function REQUEST_DIAL(length, options) {
if (options.rilRequestError) {
// The connection is not established yet.
options.callIndex = -1;
this._sendCallError(options.callIndex,
RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError]);
this.getFailCauseCode(options);
}
};
RIL[REQUEST_GET_IMSI] = function REQUEST_GET_IMSI(length, options) {