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

Commit 9f1ec364 authored by Sandeep Bandaru's avatar Sandeep Bandaru Committed by Android (Google) Code Review
Browse files

Merge "Close PFD when returning via AndroidFuture" into main

parents f84dea94 6f8b0a12
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -398,6 +398,9 @@ public abstract class OnDeviceIntelligenceService extends Service {
                Slog.e(TAG, "Cannot open file. No ParcelFileDescriptor returned.");
            } finally {
                future.complete(pfd);
                if (pfd != null) {
                    pfd.close();
                }
            }
        });
    }