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

Commit a9b81f3c authored by Peng Qi's avatar Peng Qi Committed by android-build-merger
Browse files

Bluetooth: AsyncFdWatcher: Fix FD leak

am: 5c6da266

Change-Id: Ia7b6d7357f0df7141ab55e4fc31478fd36d16f43
parents ba6d6e57 5c6da266
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -105,6 +105,9 @@ int AsyncFdWatcher::stopThread() {
    timeout_cb_ = nullptr;
  }

  close(notification_listen_fd_);
  close(notification_write_fd_);

  return 0;
}