mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 830038 - Add an assertion in Bluetooth*Mangaers, r=gyeh
This commit is contained in:
parent
0463bdbb4d
commit
ee0801895b
@ -1012,6 +1012,8 @@ BluetoothHfpManager::Connect(const nsAString& aDevicePath,
|
||||
mHeadsetSocket = nullptr;
|
||||
}
|
||||
|
||||
MOZ_ASSERT(!mRunnable);
|
||||
|
||||
mRunnable = aRunnable;
|
||||
mSocket =
|
||||
new BluetoothSocket(this, BluetoothSocketType::RFCOMM, true, true);
|
||||
|
@ -282,6 +282,8 @@ BluetoothOppManager::Connect(const nsAString& aDeviceObjectPath,
|
||||
mL2capSocket = nullptr;
|
||||
}
|
||||
|
||||
MOZ_ASSERT(!mRunnable);
|
||||
|
||||
mRunnable = aRunnable;
|
||||
mSocket =
|
||||
new BluetoothSocket(this, BluetoothSocketType::RFCOMM, true, true);
|
||||
|
Loading…
Reference in New Issue
Block a user