mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 912376 - SCO wouldn't be dropped after SLC was disconnected, r=btian
This commit is contained in:
parent
169de0abf1
commit
156307ce2f
@ -1653,14 +1653,8 @@ BluetoothHfpManager::ConnectSco(BluetoothReplyRunnable* aRunnable)
|
|||||||
bool
|
bool
|
||||||
BluetoothHfpManager::DisconnectSco()
|
BluetoothHfpManager::DisconnectSco()
|
||||||
{
|
{
|
||||||
if (!IsConnected()) {
|
if (!IsScoConnected()) {
|
||||||
BT_WARNING("BluetoothHfpManager is not connected");
|
BT_WARNING("SCO has been already disconnected.");
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
SocketConnectionStatus status = mScoSocket->GetConnectionStatus();
|
|
||||||
if (status != SOCKET_CONNECTED && status != SOCKET_CONNECTING) {
|
|
||||||
BT_WARNING("No SCO exists");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user