Bug 947060 - Don't go through bonding procedure while transferring files via OPP, r=gyeh

This commit is contained in:
Eric Chou 2013-12-09 17:43:15 +08:00
parent 7c06155fec
commit 9588efd947

View File

@ -261,7 +261,7 @@ BluetoothOppManager::ConnectInternal(const nsAString& aDeviceAddress)
}
mSocket =
new BluetoothSocket(this, BluetoothSocketType::RFCOMM, true, true);
new BluetoothSocket(this, BluetoothSocketType::RFCOMM, false, true);
mSocket->Connect(aDeviceAddress, -1);
}
@ -295,7 +295,7 @@ BluetoothOppManager::Listen()
}
mServerSocket =
new BluetoothSocket(this, BluetoothSocketType::RFCOMM, true, true);
new BluetoothSocket(this, BluetoothSocketType::RFCOMM, false, true);
if (!mServerSocket->Listen(BluetoothReservedChannels::CHANNEL_OPUSH)) {
BT_WARNING("[OPP] Can't listen on RFCOMM socket!");