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

Commit f92685bb authored by Myles Watson's avatar Myles Watson
Browse files

bluetooth_socket_manager: Call setFileDescriptor()

Bug: 69678755
Test: manual inspection of lsof
Change-Id: Ifc1db1bdc16a30266aea697e1182cea4c0479ae0
parent 7b672f72
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ Status BluetoothSocketManagerBinderServer::connectSocket(
  }

  _aidl_return->reset(new ParcelFileDescriptor());
  (*_aidl_return)->fd = socket_fd;
  (*_aidl_return)->setFileDescriptor(socket_fd, true);
  return Status::ok();
}

@@ -96,7 +96,7 @@ Status BluetoothSocketManagerBinderServer::createSocketChannel(
  }

  _aidl_return->reset(new ParcelFileDescriptor());
  (*_aidl_return)->fd = socket_fd;
  (*_aidl_return)->setFileDescriptor(socket_fd, true);
  return Status::ok();
}