Пример #1
0
nsresult
BluetoothGonkService::StopInternal()
{
    NS_ASSERTION(!NS_IsMainThread(), "This should not run on the main thread!");
    nsresult ret;

    ret = StartStopGonkBluetooth(false);

    if (NS_FAILED(ret)) {
        return ret;
    }

    return BluetoothDBusService::StopInternal();
}
nsresult
BluetoothGonkService::StopInternal()
{
  MOZ_ASSERT(!NS_IsMainThread());

  nsresult ret;

  ret = BluetoothDBusService::StopInternal();

  if (NS_FAILED(ret)) {
    return ret;
  }

  return StartStopGonkBluetooth(false);
}