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

Commit 3d008c91 authored by Hansong Zhang's avatar Hansong Zhang Committed by android-build-merger
Browse files

Merge "HAL cert and facade: Unregister HCI on shutdown" am: a452eae8 am:...

Merge "HAL cert and facade: Unregister HCI on shutdown" am: a452eae8 am: f2f9a236 am: ceb9b2bd am: 3197bcf9
am: b25aba0a

Change-Id: Ic951bc9f00bf1d098bc674aa415092bb5991d856
parents 86cf33bb b25aba0a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -38,6 +38,10 @@ class HciHalCertService : public HciHalCert::Service, public ::bluetooth::hal::H
    hal->registerIncomingPacketCallback(this);
  }

  ~HciHalCertService() {
    hal_->unregisterIncomingPacketCallback();
  }

  ::grpc::Status SendHciResetCommand(::grpc::ServerContext* context, const ::google::protobuf::Empty* request,
                                     ::google::protobuf::Empty* response) override {
    std::unique_lock<std::mutex> lock(mutex_);
+4 −0
Original line number Diff line number Diff line
@@ -45,6 +45,10 @@ class HciHalFacadeService
    hal->registerIncomingPacketCallback(this);
  }

  ~HciHalFacadeService() {
    hal_->unregisterIncomingPacketCallback();
  }

  ::grpc::Status SendHciResetCommand(::grpc::ServerContext* context, const ::google::protobuf::Empty* request,
                                     ::google::protobuf::Empty* response) override {
    std::unique_lock<std::mutex> lock(mutex_);