OSDN Git Service

AclManager: Unregister ACL Credit during Stop()
authorHansong Zhang <hsz@google.com>
Fri, 21 Feb 2020 22:37:46 +0000 (14:37 -0800)
committerHansong Zhang <hsz@google.com>
Fri, 21 Feb 2020 22:48:41 +0000 (14:48 -0800)
commit25250b55bafcf5ad208bc1d629886ea149c43541
treef14fb9331edba191fa45f8c05da7f36be17ca8cf
parent39fae1ddfb4a9cd95f650a4c21045d81c5c63f92
AclManager: Unregister ACL Credit during Stop()

If Controller received ACL credit, but the listener (AclManager) is
stopped, it should not post event to the invalid Handler.

Bug: 150003349
Test: bluetooth_test_gd and cert/run_cert_facade_only.sh
Change-Id: Idbae0672897273542a009c8df9fbf9f6f00db298
gd/hci/acl_manager.cc
gd/hci/acl_manager_test.cc
gd/hci/controller.cc
gd/hci/controller.h
gd/hci/controller_test.cc