From 8fcfcfa16227ee783b661b70a17758084799ab01 Mon Sep 17 00:00:00 2001 From: Jessica Jong Date: Tue, 20 Aug 2013 19:31:10 +0800 Subject: [PATCH] Bug 905955 - B2G RIL: mms data connection does not get disconnected. r=vicamo --- dom/system/gonk/RadioInterfaceLayer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dom/system/gonk/RadioInterfaceLayer.js b/dom/system/gonk/RadioInterfaceLayer.js index ab67726fd401..822cf88edebf 100644 --- a/dom/system/gonk/RadioInterfaceLayer.js +++ b/dom/system/gonk/RadioInterfaceLayer.js @@ -3232,6 +3232,8 @@ RadioInterface.prototype = { function RILNetworkInterface(radioInterface, apnSetting) { this.radioInterface = radioInterface; this.apnSetting = apnSetting; + + this.connectedTypes = []; } RILNetworkInterface.prototype = { @@ -3402,12 +3404,12 @@ RILNetworkInterface.prototype = { registeredAsDataCallCallback: false, registeredAsNetworkInterface: false, connecting: false, - apnSetting: {}, + apnSetting: null, // APN failed connections. Retry counter apnRetryCounter: 0, - connectedTypes: [], + connectedTypes: null, inConnectedTypes: function inConnectedTypes(type) { return this.connectedTypes.indexOf(type) != -1;