Bug 1170086 - Fix the parameter type of DispatchReplyError() in StartLeScan result handler. r=joliu
authorJamin Liu <jaliu@mozilla.com>
Tue, 02 Jun 2015 13:55:12 +0800
changeset 246771 69bc92321873afee9a73d0f812c0b1ab175ba37e
parent 246770 cfc5353e8711e6c1ea6e4efb710137c1f537381d
child 246772 c52594d757bbd9c366410f3489bed38b05263bf8
push id28840
push userkwierso@gmail.com
push dateWed, 03 Jun 2015 01:34:22 +0000
treeherdermozilla-central@b0a507af2b4a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjoliu
bugs1170086
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1170086 - Fix the parameter type of DispatchReplyError() in StartLeScan result handler. r=joliu
dom/bluetooth/bluedroid/BluetoothGattManager.cpp
--- a/dom/bluetooth/bluedroid/BluetoothGattManager.cpp
+++ b/dom/bluetooth/bluedroid/BluetoothGattManager.cpp
@@ -517,18 +517,17 @@ public:
       BluetoothGattManager* gattManager = BluetoothGattManager::Get();
       NS_ENSURE_TRUE_VOID(gattManager);
 
       nsRefPtr<BluetoothVoidReplyRunnable> result =
         new BluetoothVoidReplyRunnable(nullptr);
       gattManager->UnregisterClient(mClient->mClientIf, result);
     }
 
-    DispatchReplyError(mClient->mStartLeScanRunnable,
-                       BluetoothValue(mClient->mAppUuid));
+    DispatchReplyError(mClient->mStartLeScanRunnable, aStatus);
     mClient->mStartLeScanRunnable = nullptr;
   }
 
 private:
   nsRefPtr<BluetoothGattClient> mClient;
 };
 
 class BluetoothGattManager::StopLeScanResultHandler final