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

Commit d06f7650 authored by Zach Johnson's avatar Zach Johnson
Browse files

Do not unregister messages in HciLayer::Stop

The handler has already been cleared, so they have
no effect and only print error messages.

Test: new fuzz test I'm working on
Change-Id: Ie7da9884fb0cbd527554898975a6944da8edd62b
parent f11ec8f5
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -234,12 +234,6 @@ struct HciLayer::impl : public hal::HciHalCallbacks {

  void Stop() {
    hal_->unregisterIncomingPacketCallback();
    UnregisterEventHandler(EventCode::COMMAND_COMPLETE);
    UnregisterEventHandler(EventCode::COMMAND_STATUS);
    UnregisterEventHandler(EventCode::LE_META_EVENT);
    UnregisterEventHandler(EventCode::PAGE_SCAN_REPETITION_MODE_CHANGE);
    UnregisterEventHandler(EventCode::MAX_SLOTS_CHANGE);
    UnregisterEventHandler(EventCode::VENDOR_SPECIFIC);

    acl_queue_.GetDownEnd()->UnregisterDequeue();
    incoming_acl_packet_buffer_.Clear();