Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 700eb12f authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Bluetooth: Return false when not shut down am: 9833109a am: f682ae52 am: d258feee

am: 24bd994c

Change-Id: Ic797afae72dfe9e4ac8a32ebeedc46b569a05294
parents 537052bc 24bd994c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -162,8 +162,10 @@ bool VendorInterface::Initialize(
    InitializeCompleteCallback initialize_complete_cb,
    PacketReadCallback event_cb, PacketReadCallback acl_cb,
    PacketReadCallback sco_cb) {
  LOG_ALWAYS_FATAL_IF(g_vendor_interface, "%s: No previous Shutdown()?",
                      __func__);
  if (g_vendor_interface) {
    ALOGE("%s: No previous Shutdown()?", __func__);
    return false;
  }
  g_vendor_interface = new VendorInterface();
  return g_vendor_interface->Open(initialize_complete_cb, event_cb, acl_cb,
                                  sco_cb);