Bug 830038 - Add an assertion in Bluetooth*Mangaers, r=gyeh

This commit is contained in:
Eric Chou 2013-05-13 18:08:40 +08:00
parent 0463bdbb4d
commit ee0801895b
2 changed files with 4 additions and 0 deletions

View File

@ -1012,6 +1012,8 @@ BluetoothHfpManager::Connect(const nsAString& aDevicePath,
mHeadsetSocket = nullptr;
}
MOZ_ASSERT(!mRunnable);
mRunnable = aRunnable;
mSocket =
new BluetoothSocket(this, BluetoothSocketType::RFCOMM, true, true);

View File

@ -282,6 +282,8 @@ BluetoothOppManager::Connect(const nsAString& aDeviceObjectPath,
mL2capSocket = nullptr;
}
MOZ_ASSERT(!mRunnable);
mRunnable = aRunnable;
mSocket =
new BluetoothSocket(this, BluetoothSocketType::RFCOMM, true, true);