Bluetooth: Return false when not shut down am: 9833109a3e am: f682ae5219

am: d258feee5b

Change-Id: I291f9b95673b161e7a1928b3a62abc21d5bef36f
This commit is contained in:
Myles Watson
2017-08-24 23:51:16 +00:00
committed by android-build-merger

View File

@@ -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);